aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/ecasound.rb
blob: 13a8a1048702de6c165569741da2bd3efd8ee5ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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'
  sha1 '55c42a611ce59ea2b92461f49358a0cd54c40fe0'

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

  def install
    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