aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNicolas Braud-Santoni2013-07-10 17:16:33 +0200
committerAdam Vandenberg2013-07-12 09:12:46 -0700
commit6add3c87bf3de52bbac83c57a45a57edcb95fa78 (patch)
treedb7e44c32703a7edfcd8967599dd4499b4f2c9a5 /Library
parent33aa8103ad34fd0d4d316828b4a98b4ab1f7f2eb (diff)
downloadhomebrew-6add3c87bf3de52bbac83c57a45a57edcb95fa78.tar.bz2
mpd: Add option for vorbis encoding
Closes #21121. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
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'