homebrew-core/Formula/portaudio.rb

34 lines
826 B
Ruby
Raw Normal View History

require 'formula'
2009-10-13 01:37:13 +00:00
2011-03-10 05:11:03 +00:00
class Portaudio < Formula
url 'http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz'
2009-10-13 01:37:13 +00:00
homepage 'http://www.portaudio.com'
md5 '25c85c1cc5e9e657486cbc299c6c035a'
2009-10-13 01:37:13 +00:00
2011-03-21 21:24:22 +00:00
depends_on 'pkg-config' => :build
fails_with :llvm do
build 2334
end
2009-10-13 01:37:13 +00:00
def options
[["--universal", "Build a universal binary."]]
end
2011-03-21 21:24:22 +00:00
def install
ENV.universal_binary if ARGV.build_universal?
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"
# 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