diff options
| author | Adam Malcontenti-Wilson | 2012-09-21 00:23:02 +1000 | 
|---|---|---|
| committer | Adam Vandenberg | 2012-11-11 19:30:51 -0800 | 
| commit | 0844a49c0954d40e871e088f43a78b1a444d9b1b (patch) | |
| tree | bb5c938e827433c30538e46672d8c7b3d0847a65 | |
| parent | 4d2656781b6e74a16b1b3cf7eaced92380bd07c9 (diff) | |
| download | homebrew-0844a49c0954d40e871e088f43a78b1a444d9b1b.tar.bz2 | |
pulseaudio 2.1
Closes #15866.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/pulseaudio.rb | 55 | 
1 files changed, 55 insertions, 0 deletions
| diff --git a/Library/Formula/pulseaudio.rb b/Library/Formula/pulseaudio.rb new file mode 100644 index 000000000..25dc01c0b --- /dev/null +++ b/Library/Formula/pulseaudio.rb @@ -0,0 +1,55 @@ +require 'formula' + +class Pulseaudio < Formula +  homepage 'http://pulseaudio.org' +  url 'http://freedesktop.org/software/pulseaudio/releases/pulseaudio-2.1.tar.gz' +  sha1 '957399478456c1dd5632bc84e9ee06a07a9c4c9c' + +  head 'git://anongit.freedesktop.org/pulseaudio/pulseaudio' + +  option "with-dbus", "Enable dbus" + +  # Dependencies from http://www.freedesktop.org/wiki/Software/PulseAudio/Ports/OSX +  if build.head? +    depends_on :autoconf +    depends_on :automake +    depends_on :libtool  +  end + +  depends_on 'pkg-config' => :build + +  depends_on 'intltool' +  depends_on 'libsndfile' +  depends_on 'speex' +  depends_on 'gdbm' +  depends_on 'liboil' +  depends_on 'json-c' +  depends_on 'dbus' if build.include? 'with-dbus' + +  def install +    args = ["--prefix=#{prefix}", +            "--disable-jack", +            "--disable-hal", +            "--disable-bluez", +            "--disable-avahi", +            "--with-udev-rules-dir=#{prefix}/lib/udev/rules.d", +            "--with-mac-sysroot=#{MacOS.sdk_path}", +            "--with-mac-version-min=#{MacOS.version}"] + +    args << '--disable-dbus' unless build.include? 'with-dbus' +    args << "--disable-nls" if build.head? and not Formula.factory('libtool').installed? + +    if build.head? then +      system "./autogen.sh", *args +    else +      system "./configure", *args +    end + +    system "make" +    system "make install" +  end + +  def test +    system "#{bin}/pulseaudio" +  end +end | 
