homebrew-core/Formula/portaudio.rb

39 lines
992 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
2009-10-13 01:37:13 +00:00
homepage 'http://www.portaudio.com'
2012-08-27 02:33:52 +00:00
url 'http://www.portaudio.com/archives/pa_stable_v19_20111121.tgz'
sha1 'f07716c470603729a55b70f5af68f4a6807097eb'
2009-10-13 01:37:13 +00:00
2011-03-21 21:24:22 +00:00
depends_on 'pkg-config' => :build
option :universal
fails_with :llvm do
build 2334
end
2009-10-13 01:37:13 +00:00
# Fix PyAudio compilation on Lion
def patches
2012-08-27 02:33:52 +00:00
{ :p0 =>
"https://trac.macports.org/export/94150/trunk/dports/audio/portaudio/files/patch-include__pa_mac_core.h.diff"
}
end if MacOS.version >= :lion
2011-03-21 21:24:22 +00:00
def install
ENV.universal_binary if build.universal?
args = [ "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
# portaudio builds universal unless told not to
2012-08-27 02:33:52 +00:00
"--enable-mac-universal=#{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