diff options
| author | Peter Aronoff | 2010-07-14 11:32:56 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-14 08:43:02 -0700 |
| commit | 2d0330956756dd6a164ff45aa758b27d03551ddf (patch) | |
| tree | 1d4961b2c11cc505481b3029dbfc194c38bff647 /Library/Formula | |
| parent | 394dbe53f110da6fc3c202737977c022dd2d761b (diff) | |
| download | homebrew-2d0330956756dd6a164ff45aa758b27d03551ddf.tar.bz2 | |
Add optional configure flag for Last.fm support in mpd
As of mpd 0.15, mpd provides experimental native support for Last.fm radio.
This commit adds an optional configure flag (--lastfm) to give Homebrew
users a chance to try it out. (I'm using it here with good results.)
See http://mpd.wikia.com/wiki/Last.fm_Radio for more details about how to
use Last.fm with mpd if enabled.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/mpd.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/mpd.rb b/Library/Formula/mpd.rb index 5d286907f..7dbf6f9b9 100644 --- a/Library/Formula/mpd.rb +++ b/Library/Formula/mpd.rb @@ -17,6 +17,10 @@ class Mpd <Formula depends_on 'libmms' => :optional depends_on 'libzzip' => :optional + def options + [["--lastfm", "Compile with experimental support for Last.fm radio"]] + end + def install # make faad.h findable (when brew is used elsewhere than /usr/local/) ENV.append 'CFLAGS', "-I#{HOMEBREW_PREFIX}/include" @@ -32,6 +36,7 @@ class Mpd <Formula "--enable-zip", ] configure_args << "--disable-curl" if MACOS_VERSION <= 10.5 + configure_args << "--enable-lastfm" if ARGV.include?("--lastfm") system "./configure", *configure_args system "make install" |
