homebrew-core/Formula/ncmpcpp.rb
ahihi 18bd38d62e ncmpcpp: add visualizer option
Closes .

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-01 19:29:00 -06:00

32 lines
760 B
Ruby

require 'formula'
class Ncmpcpp < Formula
url 'http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.8.tar.bz2'
homepage 'http://unkart.ovh.org/ncmpcpp/'
md5 '288952c6b4cf4fa3683f3f83a58da37c'
depends_on 'taglib'
depends_on 'libmpdclient'
depends_on 'fftw' if ARGV.include? "--visualizer"
def options
[["--visualizer", "Build with visualizer support."]]
end
def install
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