aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/mpd.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Formula/mpd.rb b/Library/Formula/mpd.rb
index 735aa46ce..2e98c18f1 100644
--- a/Library/Formula/mpd.rb
+++ b/Library/Formula/mpd.rb
@@ -12,6 +12,7 @@ class Mpd < Formula
option 'with-lame', 'Build with lame support (for MP3 encoding when streaming)'
option 'with-two-lame', 'Build with two-lame support (for MP2 encoding when streaming)'
option 'with-flac', 'Build with flac support (for Flac encoding when streaming)'
+ option 'with-vorbis', 'Build with vorbis support (for Ogg encoding)'
option 'with-yajl', 'Build with yajl support (for playing from soundcloud)'
if MacOS.version < :lion
option 'with-libwrap', 'Build with libwrap (TCP Wrappers) support'
@@ -40,6 +41,8 @@ class Mpd < Formula
depends_on 'libzzip' => :optional # Reading from within ZIPs
depends_on 'yajl' => :optional # JSON library for SoundCloud
+ depends_on 'libvorbis' if build.with? 'vorbis' # Vorbis support
+
def install
if build.include? 'lastfm' or build.include? 'libwrap' \
or build.include? 'enable-soundcloud'
@@ -71,6 +74,7 @@ class Mpd < Formula
args << '--disable-libwrap' if build.without? 'libwrap'
args << '--disable-lame-encoder' if build.without? 'lame'
args << '--disable-soundcloud' if build.without? 'yajl'
+ args << '--enable-vorbis-encoder' if build.with? 'vorbis'
system './configure', *args
system 'make'