97e08654b3
Closes Homebrew/homebrew#35011. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
31 lines
1,008 B
Ruby
31 lines
1,008 B
Ruby
require "formula"
|
|
|
|
class Portaudio < Formula
|
|
homepage "http://www.portaudio.com"
|
|
url "http://www.portaudio.com/archives/pa_stable_v19_20140130.tgz"
|
|
sha1 "526a7955de59016a06680ac24209ecb6ce05527d"
|
|
head "https://subversion.assembla.com/svn/portaudio/portaudio/trunk/", :using => :svn
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "dd0697d98af452ef4508c80bb1148f2e8df21c7c" => :mavericks
|
|
sha1 "97a88511e3068a00350867b67cf272b54f118a85" => :mountain_lion
|
|
sha1 "b9ea51a124685cb8b872c7ec9f0cdc02bbdee8de" => :lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
option :universal
|
|
|
|
def install
|
|
ENV.universal_binary if build.universal?
|
|
system "./configure", "--prefix=#{prefix}",
|
|
"--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--enable-mac-universal=#{build.universal? ? 'yes' : 'no'}"
|
|
system "make", "install"
|
|
|
|
# Need 'pa_mac_core.h' to compile PyAudio
|
|
include.install "include/pa_mac_core.h"
|
|
end
|
|
end
|