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
|
2011-04-25 23:34:01 +00:00
|
|
|
[
|
|
|
|
["--outputs", "Compile with mpd outputs control"],
|
|
|
|
["--visualizer", "Compile with built-in visualizer"],
|
|
|
|
["--clock", "Compile with optional clock tab"]
|
|
|
|
]
|
2012-01-17 03:53:57 +00:00
|
|
|
end
|
2010-12-01 00:46:09 +00:00
|
|
|
|
|
|
|
def install
|
2011-04-25 23:34:01 +00:00
|
|
|
ENV.append 'LDFLAGS', '-liconv'
|
|
|
|
args = ["--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-taglib",
|
2012-01-17 03:53:57 +00:00
|
|
|
"--with-curl",
|
2011-04-25 23:34:01 +00:00
|
|
|
"--enable-unicode"]
|
|
|
|
args << '--enable-outputs' if ARGV.include?('--outputs')
|
|
|
|
args << '--enable-visualizer' if ARGV.include?('--visualizer')
|
|
|
|
args << '--enable-clock' if ARGV.include?('--clock')
|
2012-01-17 03:53:57 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
2010-12-01 00:46:09 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|