aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/jack.rb
blob: c49ebc4f90d9a1c8dfa3b08a31d067c1a56c3428 (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'

class Jack <Formula
  url 'http://www.grame.fr/~letz/jack-1.9.6.tar.bz2'
  homepage 'http://jackaudio.org'
  md5 'fcd4bdb44f51d71c9e19bc1d0e887902'

  depends_on 'celt'
  depends_on 'libsamplerate'

  def patches
    # default build assumes ppc+i386, changed to i386+x86_64
    "https://gist.github.com/raw/636194/jack-1.9.6_homebrew.patch"
  end

  def install
    ENV['LINKFLAGS'] = ENV['LDFLAGS']
    system "./waf","configure","--prefix=#{prefix}"
    system "./waf","build"
    system "./waf","install"
  end
end