From 645f851850345c57982e329c2109aff0613949f9 Mon Sep 17 00:00:00 2001 From: Tomasz Pajor Date: Sun, 22 Jan 2017 20:46:11 +0100 Subject: [PATCH] mpd: add pulseaudio support Closes #9165. Signed-off-by: William Woodruff --- Formula/mpd.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Formula/mpd.rb b/Formula/mpd.rb index 099fcdbc7ad..3ca6fcf1f2f 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 @@ class Mpd < Formula 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"