78 lines
2.1 KiB
Ruby
78 lines
2.1 KiB
Ruby
class Pulseaudio < Formula
|
|
desc "Sound system for POSIX OSes"
|
|
homepage "https://wiki.freedesktop.org/www/Software/PulseAudio/"
|
|
url "https://www.freedesktop.org/software/pulseaudio/releases/pulseaudio-10.0.tar.xz"
|
|
sha256 "a3186824de9f0d2095ded5d0d0db0405dc73133983c2fbb37291547e37462f57"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "df987fbfcaf897f37825b63bd512edd8e4221e17c4ac6f8a4d8b7b3d8f33f34d" => :sierra
|
|
sha256 "c7697b31b61a7da3742630bbfa56acb8d083465576c6cfc1195095211c5ad7da" => :el_capitan
|
|
sha256 "ab652480b6d9b1c7633d355606a80f4a6506592f7a9b60dbd2273d1a3d81ac13" => :yosemite
|
|
end
|
|
|
|
head do
|
|
url "https://anongit.freedesktop.org/git/pulseaudio/pulseaudio.git"
|
|
|
|
depends_on "automake" => :build
|
|
depends_on "autoconf" => :build
|
|
depends_on "intltool" => :build
|
|
depends_on "gettext" => :build
|
|
end
|
|
|
|
option "with-nls", "Build with native language support"
|
|
|
|
deprecated_option "without-speex" => "without-speexdsp"
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
if build.with? "nls"
|
|
depends_on "intltool" => :build
|
|
depends_on "gettext" => :build
|
|
end
|
|
|
|
depends_on "libtool" => :run
|
|
depends_on "json-c"
|
|
depends_on "libsndfile"
|
|
depends_on "libsoxr"
|
|
depends_on "openssl"
|
|
depends_on "dbus" => :recommended
|
|
depends_on "speexdsp" => :recommended
|
|
depends_on "glib" => :optional
|
|
depends_on "gconf" => :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=#{MacOS.sdk_path}
|
|
--with-mac-version-min=#{MacOS.version}
|
|
--disable-x11
|
|
]
|
|
|
|
args << "--disable-nls" if build.without? "nls"
|
|
|
|
if build.head?
|
|
# autogen.sh runs bootstrap.sh then ./configure
|
|
system "./autogen.sh", *args
|
|
else
|
|
system "./configure", *args
|
|
end
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system bin/"pulseaudio", "--dump-modules"
|
|
end
|
|
end
|