2013-12-05 03:17:13 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Pulseaudio < Formula
|
2014-03-06 04:00:27 +00:00
|
|
|
homepage "http://pulseaudio.org"
|
2014-05-02 14:22:15 +00:00
|
|
|
url "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-5.0.tar.xz"
|
|
|
|
sha1 "e420931a0b9cf37331cd06e30ba415046317ab85"
|
2013-12-05 03:17:13 +00:00
|
|
|
|
2014-03-06 04:00:27 +00:00
|
|
|
option "with-nls", "Build with native language support"
|
2013-12-05 03:17:13 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-03-06 04:00:27 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
depends_on "intltool" => :build if build.with? "nls"
|
|
|
|
depends_on "gettext" => :build if build.with? "nls"
|
2013-12-05 03:17:13 +00:00
|
|
|
|
2014-03-06 04:00:27 +00:00
|
|
|
depends_on "json-c"
|
|
|
|
depends_on "libsndfile"
|
|
|
|
depends_on "libsamplerate"
|
2013-12-05 03:17:13 +00:00
|
|
|
|
|
|
|
depends_on :x11 => :optional
|
2014-03-06 04:00:27 +00:00
|
|
|
depends_on "glib" => :optional
|
|
|
|
depends_on "gconf" => :optional
|
|
|
|
depends_on "d-bus" => :optional
|
|
|
|
depends_on "gtk+3" => :optional
|
|
|
|
depends_on "jack" => :optional
|
2013-12-05 03:17:13 +00:00
|
|
|
|
2014-05-02 14:21:51 +00:00
|
|
|
# i386 patch per MacPorts
|
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/119615/trunk/dports/audio/pulseaudio/files/i386.patch"
|
|
|
|
sha1 "4193a6112f90d103875d2ca91462c26d811a9386"
|
|
|
|
end
|
|
|
|
|
2013-12-05 03:17:13 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 421
|
|
|
|
cause "error: thread-local storage is unsupported for the current target"
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = %W[
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-silent-rules
|
2014-03-06 04:00:27 +00:00
|
|
|
--prefix=#{prefix}
|
2013-12-05 03:17:13 +00:00
|
|
|
--enable-coreaudio-output
|
2014-03-06 04:00:27 +00:00
|
|
|
--disable-neon-opt
|
2013-12-05 03:17:13 +00:00
|
|
|
--with-mac-sysroot=/
|
|
|
|
]
|
2014-03-06 04:00:27 +00:00
|
|
|
|
|
|
|
args << "--with-mac-sysroot=#{MacOS.sdk_path}"
|
|
|
|
args << "--with-mac-version-min=#{MacOS.version}"
|
2014-03-06 20:40:26 +00:00
|
|
|
args << "--disable-nls" if build.without? "nls"
|
2014-03-06 04:00:27 +00:00
|
|
|
|
2013-12-05 03:17:13 +00:00
|
|
|
if build.universal?
|
2014-03-06 04:00:27 +00:00
|
|
|
args << "--enable-mac-universal"
|
2013-12-05 03:17:13 +00:00
|
|
|
ENV.universal_binary
|
|
|
|
end
|
2014-03-06 04:00:27 +00:00
|
|
|
|
2013-12-05 03:17:13 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
end
|