2010-12-01 00:46:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ncmpcpp < Formula
|
2012-08-15 20:30:04 +00:00
|
|
|
homepage 'http://ncmpcpp.rybczak.net/'
|
|
|
|
url 'http://ncmpcpp.rybczak.net/stable/ncmpcpp-0.5.10.tar.bz2'
|
2012-07-12 17:04:43 +00:00
|
|
|
sha1 '5e34733e7fbaf2862f04fdf8af8195ce860a9014'
|
2010-12-01 00:46:09 +00:00
|
|
|
|
2013-10-25 02:41:36 +00:00
|
|
|
head do
|
|
|
|
url 'git://repo.or.cz/ncmpcpp.git'
|
|
|
|
|
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
depends_on 'boost' # not needed by stable
|
2014-01-15 17:40:53 +00:00
|
|
|
depends_on 'readline'
|
2013-10-25 02:41:36 +00:00
|
|
|
end
|
|
|
|
|
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
|
|
|
cause "'itsTempString' is a private member of 'NCurses::basic_buffer<char>'"
|
2013-10-25 02:41:36 +00:00
|
|
|
end if build.stable?
|
2012-04-22 21:00:42 +00:00
|
|
|
|
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
|
|
|
|
2013-10-25 02:41:36 +00:00
|
|
|
if build.head?
|
|
|
|
# Also runs configure
|
|
|
|
system "./autogen.sh", *args
|
|
|
|
else
|
|
|
|
system "./configure", *args
|
|
|
|
end
|
2010-12-01 00:46:09 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|