aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ecasound.rb
blob: 547a74d8abddb72bddaf472f865bff3938dc302f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

# 2.9.0 is out, but uses clock_gettime which is not available on OS X
class Ecasound < Formula
  homepage 'http://www.eca.cx/ecasound/'
  url 'http://ecasound.seul.org/download/ecasound-2.8.1.tar.gz'
  md5 'd9ded0074a8eeb59dd507c248220d010'

  option "with-ruby", "Compile with ruby support"

  def install
    args = %W[
      --disable-debug
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]
    args << "--enable-rubyecasound=yes" if build.include? 'with-ruby'
    system "./configure", *args
    system "make install"
  end
end