From d8c6ee7f44c1f7ff311eb0f15eede65c3deebf84 Mon Sep 17 00:00:00 2001 From: ahihi Date: Tue, 17 Jan 2012 05:53:57 +0200 Subject: ncmpcpp: add visualizer option Closes #9631. Signed-off-by: Jack Nagel --- Library/Formula/ncmpcpp.rb | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'Library/Formula/ncmpcpp.rb') 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 -- cgit v1.2.3