2010-12-01 00:46:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ncmpcpp < Formula
|
2010-12-01 00:46:09 +00:00
|
|
|
homepage 'http://unkart.ovh.org/ncmpcpp/'
|
2012-07-12 17:04:43 +00:00
|
|
|
url 'http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.10.tar.bz2'
|
|
|
|
sha1 '5e34733e7fbaf2862f04fdf8af8195ce860a9014'
|
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"
|
|
|
|
|
2012-04-22 21:00:42 +00:00
|
|
|
fails_with :clang do
|
|
|
|
build 318
|
|
|
|
end
|
|
|
|
|
2012-01-17 03:53:57 +00:00
|
|
|
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
|