mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
Update portaudio to the latest stable version. This eliminates the patches used in the previous formula. PyAudio doesn't seem to build against this version, but it wasn't building against the previous version either.
32 lines
816 B
Ruby
32 lines
816 B
Ruby
require 'formula'
|
|
|
|
class Portaudio < Formula
|
|
url 'http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz'
|
|
homepage 'http://www.portaudio.com'
|
|
md5 '25c85c1cc5e9e657486cbc299c6c035a'
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
fails_with_llvm :build => 2334
|
|
|
|
def options
|
|
[["--universal", "Build a universal binary."]]
|
|
end
|
|
|
|
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
|
|
system "make install"
|
|
|
|
# Need 'pa_mac_core.h' to compile PyAudio
|
|
include.install "include/pa_mac_core.h"
|
|
end
|
|
end
|