blob: f296805ac629e64e65e30af0823d2cafbf3c6e77 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  | 
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
  |