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
|
|
|
|
2012-08-14 07:45:15 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-12-01 00:46:09 +00:00
|
|
|
depends_on 'taglib'
|
|
|
|
depends_on 'libmpdclient'
|
2012-08-14 07:45:15 +00:00
|
|
|
depends_on 'fftw' if build.include? "visualizer"
|
2012-01-17 03:53:57 +00:00
|
|
|
|
2012-04-22 21:00:42 +00:00
|
|
|
fails_with :clang do
|
2012-08-14 07:45:15 +00:00
|
|
|
build 421
|
|
|
|
cause "'itsTempString' is a private member of 'NCurses::basic_buffer<char>'"
|
2012-04-22 21:00:42 +00:00
|
|
|
end
|
|
|
|
|
2012-08-14 07:45:15 +00:00
|
|
|
option 'outputs', 'Compile with mpd outputs control'
|
|
|
|
option 'visualizer', 'Compile with built-in visualizer'
|
|
|
|
option 'clock', 'Compile with optional clock tab'
|
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"]
|
2012-08-14 07:45:15 +00:00
|
|
|
args << '--enable-outputs' if build.include? 'outputs'
|
|
|
|
args << '--enable-visualizer' if build.include? 'visualizer'
|
|
|
|
args << '--enable-clock' if build.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
|