2010-12-01 00:46:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ncmpcpp < Formula
|
2011-10-27 15:30:33 +00:00
|
|
|
url 'http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.8.tar.bz2'
|
2010-12-01 00:46:09 +00:00
|
|
|
homepage 'http://unkart.ovh.org/ncmpcpp/'
|
2011-10-27 15:30:33 +00:00
|
|
|
md5 '288952c6b4cf4fa3683f3f83a58da37c'
|
2010-12-01 00:46:09 +00:00
|
|
|
|
|
|
|
depends_on 'taglib'
|
|
|
|
depends_on 'libmpdclient'
|
2012-01-17 03:53:57 +00:00
|
|
|
depends_on 'fftw' if ARGV.include? "--visualizer"
|
|
|
|
|
|
|
|
def options
|
|
|
|
[["--visualizer", "Build with visualizer support."]]
|
|
|
|
end
|
2010-12-01 00:46:09 +00:00
|
|
|
|
|
|
|
def install
|
2012-01-17 03:53:57 +00:00
|
|
|
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
|
2010-12-01 00:46:09 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|