From c2d4c80ba424822a236a677872029be1fe812b00 Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Wed, 10 Jul 2013 17:16:33 +0200 Subject: [PATCH] mpd: Add option for vorbis encoding Closes Homebrew/homebrew#21121. Signed-off-by: Adam Vandenberg --- Formula/mpd.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/mpd.rb b/Formula/mpd.rb index 735aa46ceb..2e98c18f1f 100644 --- a/Formula/mpd.rb +++ b/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'