2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-10-13 01:37:13 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Portaudio < Formula
|
2011-12-22 17:01:52 +00:00
|
|
|
url 'http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz'
|
2009-10-13 01:37:13 +00:00
|
|
|
homepage 'http://www.portaudio.com'
|
2011-12-22 17:01:52 +00:00
|
|
|
md5 '25c85c1cc5e9e657486cbc299c6c035a'
|
2009-10-13 01:37:13 +00:00
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
end
|
2009-10-13 01:37:13 +00:00
|
|
|
|
2011-04-28 16:25:40 +00:00
|
|
|
def options
|
|
|
|
[["--universal", "Build a universal binary."]]
|
|
|
|
end
|
|
|
|
|
2011-03-21 21:24:22 +00:00
|
|
|
def install
|
2011-04-28 16:25:40 +00:00
|
|
|
ENV.universal_binary if ARGV.build_universal?
|
|
|
|
|
2011-12-22 17:01:52 +00:00
|
|
|
args = [ "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
# portaudio builds universal unless told not to
|
|
|
|
"--enable-mac-universal=#{ARGV.build_universal? ? 'yes' : 'no'}" ]
|
|
|
|
|
|
|
|
system "./configure", *args
|
2009-10-13 01:37:13 +00:00
|
|
|
system "make install"
|
2011-01-17 22:37:30 +00:00
|
|
|
|
|
|
|
# Need 'pa_mac_core.h' to compile PyAudio
|
|
|
|
include.install "include/pa_mac_core.h"
|
2009-10-13 01:37:13 +00:00
|
|
|
end
|
|
|
|
end
|