diff --git a/Formula/mpd.rb b/Formula/mpd.rb index 099fcdbc7add1..3ca6fcf1f2f1d 100644 --- a/Formula/mpd.rb +++ b/Formula/mpd.rb @@ -25,6 +25,7 @@ class Mpd < Formula option "with-yajl", "Build with yajl support (for playing from soundcloud)" option "with-opus", "Build with opus support (for Opus encoding and decoding)" option "with-libmodplug", "Build with modplug support (for decoding modules supported by MODPlug)" + option "with-pulseaudio", "Build with PulseAudio support (for sending audio output to a PulseAudio sound server)" deprecated_option "with-vorbis" => "with-libvorbis" @@ -58,6 +59,7 @@ class Mpd < Formula depends_on "libnfs" => :optional depends_on "mad" => :optional depends_on "libmodplug" => :optional # MODPlug decoder + depends_on "pulseaudio" => :optional def install # mpd specifies -std=gnu++0x, but clang appears to try to build @@ -89,6 +91,7 @@ def install args << "--enable-vorbis-encoder" if build.with? "libvorbis" args << "--enable-nfs" if build.with? "libnfs" args << "--enable-modplug" if build.with? "libmodplug" + args << "--enable-pulse" if build.with? "pulseaudio" system "./configure", *args system "make"