diff options
| author | Ches Martin | 2011-04-26 06:34:01 +0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-11 20:24:10 -0800 |
| commit | 2b2640a0e73a73fd47be0748b2b0c25f71a82ac8 (patch) | |
| tree | c0c10e2a4a1ae87a9fca7afe7ab4858e4cc63d19 /Library/Formula | |
| parent | 7d7cd9a9daa8543479035085c615a617576b2b48 (diff) | |
| download | homebrew-2b2640a0e73a73fd47be0748b2b0c25f71a82ac8.tar.bz2 | |
ncmpcpp: add options
Control over outputs is particularly useful -- when I'm listening to
my music remotely, I don't want it to also be playing on the home hifi.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ncmpcpp.rb | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Library/Formula/ncmpcpp.rb b/Library/Formula/ncmpcpp.rb index 2085d2cd1..106f86730 100644 --- a/Library/Formula/ncmpcpp.rb +++ b/Library/Formula/ncmpcpp.rb @@ -10,21 +10,23 @@ class Ncmpcpp < Formula depends_on 'fftw' if ARGV.include? "--visualizer" def options - [["--visualizer", "Build with visualizer support."]] + [ + ["--outputs", "Compile with mpd outputs control"], + ["--visualizer", "Compile with built-in visualizer"], + ["--clock", "Compile with optional clock tab"] + ] end def install - args = ["--with-taglib", + ENV.append 'LDFLAGS', '-liconv' + args = ["--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-taglib", "--with-curl", - "--enable-unicode", - "--disable-dependency-tracking", - "LDFLAGS=-liconv", - "--prefix=#{prefix}"] - - if ARGV.include? "--visualizer" - args << "--with-fftw" - args << "--enable-visualizer" - end + "--enable-unicode"] + args << '--enable-outputs' if ARGV.include?('--outputs') + args << '--enable-visualizer' if ARGV.include?('--visualizer') + args << '--enable-clock' if ARGV.include?('--clock') system "./configure", *args system "make install" |
