2010-07-03 14:05:23 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Jack < Formula
|
2010-07-03 14:05:23 +00:00
|
|
|
homepage 'http://jackaudio.org'
|
2012-11-12 01:44:02 +00:00
|
|
|
url 'http://pkgs.fedoraproject.org/repo/pkgs/jack-audio-connection-kit/jack-1.9.7.tar.bz2/9759670feecbd43eeccf1c0f743ec199/jack-1.9.7.tar.bz2'
|
2012-06-13 03:31:11 +00:00
|
|
|
sha1 '0a344fd962666f7c95969da0576ac0228e71b30d'
|
2010-07-03 14:05:23 +00:00
|
|
|
|
2010-10-20 11:22:24 +00:00
|
|
|
depends_on 'celt'
|
|
|
|
depends_on 'libsamplerate'
|
|
|
|
|
2011-04-16 18:56:28 +00:00
|
|
|
# default build assumes ppc+i386, changed to i386+x86_64
|
2010-10-20 11:22:24 +00:00
|
|
|
def patches
|
2013-01-24 20:37:57 +00:00
|
|
|
"https://gist.github.com/raw/636194/a8f5326ea27faed38da6c188045dd166b1eb6af6/jack-1.9.6_homebrew.patch"
|
2010-10-20 11:22:24 +00:00
|
|
|
end
|
2010-07-03 14:05:23 +00:00
|
|
|
|
2012-06-13 03:31:11 +00:00
|
|
|
fails_with :clang do
|
2013-03-14 15:45:17 +00:00
|
|
|
build 425
|
2012-06-13 03:31:11 +00:00
|
|
|
cause 'waf fails to find g++ when compiling with clang'
|
|
|
|
end
|
|
|
|
|
2010-07-03 14:05:23 +00:00
|
|
|
def install
|
2012-05-15 18:47:30 +00:00
|
|
|
ENV['LINKFLAGS'] = ENV.ldflags
|
2012-06-13 03:31:11 +00:00
|
|
|
system "./waf","configure", "--prefix=#{prefix}"
|
2010-10-23 19:03:16 +00:00
|
|
|
system "./waf","build"
|
|
|
|
system "./waf","install"
|
2010-07-03 14:05:23 +00:00
|
|
|
end
|
|
|
|
end
|