homebrew-core/Formula/pulseaudio.rb

55 lines
1.4 KiB
Ruby

require 'formula'
class Pulseaudio < Formula
homepage "http://pulseaudio.org"
url "http://freedesktop.org/software/pulseaudio/releases/pulseaudio-4.0.tar.xz"
sha1 "9f0769dcb25318ba3faaa453fd2ed0c509fa9c5c"
option "with-nls", "Build with native language support"
option :universal
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"
depends_on "json-c"
depends_on "libsndfile"
depends_on "libsamplerate"
depends_on :x11 => :optional
depends_on "glib" => :optional
depends_on "gconf" => :optional
depends_on "d-bus" => :optional
depends_on "gtk+3" => :optional
depends_on "jack" => :optional
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
--prefix=#{prefix}
--enable-coreaudio-output
--disable-neon-opt
--with-mac-sysroot=/
]
args << "--with-mac-sysroot=#{MacOS.sdk_path}"
args << "--with-mac-version-min=#{MacOS.version}"
args << "--disable-nls" if build.without? "nls"
if build.universal?
args << "--enable-mac-universal"
ENV.universal_binary
end
system "./configure", *args
system "make", "install"
end
end