blob: 57156f9cd0f583a26724285ba7baee11384c028d (
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'
  sha1 '55c42a611ce59ea2b92461f49358a0cd54c40fe0'
  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
  |