From 6add3c87bf3de52bbac83c57a45a57edcb95fa78 Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Wed, 10 Jul 2013 17:16:33 +0200 Subject: mpd: Add option for vorbis encoding Closes #21121. Signed-off-by: Adam Vandenberg --- Library/Formula/mpd.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Formula') 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' -- cgit v1.2.3