diff options
| author | ahihi | 2012-01-17 05:53:57 +0200 |
|---|---|---|
| committer | Jack Nagel | 2012-02-01 19:29:00 -0600 |
| commit | d8c6ee7f44c1f7ff311eb0f15eede65c3deebf84 (patch) | |
| tree | 4180e43d288d0bf0485729b28dc7cdb5c0774917 /Library/Formula | |
| parent | 7d215c7d1b540b3dcd931063b6e4ef2f531f75d4 (diff) | |
| download | homebrew-d8c6ee7f44c1f7ff311eb0f15eede65c3deebf84.tar.bz2 | |
ncmpcpp: add visualizer option
Closes #9631.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ncmpcpp.rb | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/Library/Formula/ncmpcpp.rb b/Library/Formula/ncmpcpp.rb index 0bb54a684..2085d2cd1 100644 --- a/Library/Formula/ncmpcpp.rb +++ b/Library/Formula/ncmpcpp.rb @@ -7,11 +7,26 @@ class Ncmpcpp < Formula depends_on 'taglib' depends_on 'libmpdclient' + depends_on 'fftw' if ARGV.include? "--visualizer" + + def options + [["--visualizer", "Build with visualizer support."]] + end def install - system "./configure", "--with-taglib", "--with-curl", "--enable-unicode", - "--disable-debug", "--disable-dependency-tracking", - "LDFLAGS=-liconv", "--prefix=#{prefix}" + args = ["--with-taglib", + "--with-curl", + "--enable-unicode", + "--disable-dependency-tracking", + "LDFLAGS=-liconv", + "--prefix=#{prefix}"] + + if ARGV.include? "--visualizer" + args << "--with-fftw" + args << "--enable-visualizer" + end + + system "./configure", *args system "make install" end end |
