Skip to content

Commit

Permalink
mpd: add pulseaudio support
Browse files Browse the repository at this point in the history
  • Loading branch information
nijikon committed Jan 22, 2017
1 parent 55a9f4f commit da7b844
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/mpd.rb
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit da7b844

Please sign in to comment.