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"
|
|
|
|
url "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-4.0.tar.xz"
|
|
|
|
sha1 "9f0769dcb25318ba3faaa453fd2ed0c509fa9c5c"
|
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
|
|
|
|
|
|
|
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
|