homebrew-core/Formula/ecasound.rb

23 lines
681 B
Ruby
Raw Normal View History

require 'formula'
2012-08-28 04:31:40 +00:00
# 2.9.0 is out, but uses clock_gettime which is not available on OS X
2011-03-10 05:11:03 +00:00
class Ecasound < Formula
homepage 'http://www.eca.cx/ecasound/'
2012-08-28 04:31:40 +00:00
url 'http://ecasound.seul.org/download/ecasound-2.8.1.tar.gz'
sha1 '55c42a611ce59ea2b92461f49358a0cd54c40fe0'
2012-08-28 04:31:40 +00:00
option "with-ruby", "Compile with ruby support"
def install
2012-08-28 04:31:40 +00:00
args = %W[
--disable-debug
--disable-dependency-tracking
--prefix=#{prefix}
]
# Always explicitly control ruby, since there's some confusion about the default
args << ("--enable-rubyecasound=%s" % ((build.include? 'with-ruby') ? 'yes' : 'no'))
system "./configure", *args
system "make install"
end
end