mpd: Add option for vorbis encoding

Closes Homebrew/homebrew#21121.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Nicolas Braud-Santoni 2013-07-10 17:16:33 +02:00 committed by Adam Vandenberg
parent 92a7eb4ad1
commit c2d4c80ba4

View file

@ -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'