homebrew-core/Formula/ncmpcpp.rb
suvash 2c2a31a540 ncmpcpp 0.5.10
Closes Homebrew/homebrew#13370.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-07-13 02:19:07 -05:00

38 lines
1 KiB
Ruby

require 'formula'
class Ncmpcpp < Formula
homepage 'http://unkart.ovh.org/ncmpcpp/'
url 'http://unkart.ovh.org/ncmpcpp/ncmpcpp-0.5.10.tar.bz2'
sha1 '5e34733e7fbaf2862f04fdf8af8195ce860a9014'
depends_on 'taglib'
depends_on 'libmpdclient'
depends_on 'fftw' if ARGV.include? "--visualizer"
fails_with :clang do
build 318
end
def options
[
["--outputs", "Compile with mpd outputs control"],
["--visualizer", "Compile with built-in visualizer"],
["--clock", "Compile with optional clock tab"]
]
end
def install
ENV.append 'LDFLAGS', '-liconv'
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-taglib",
"--with-curl",
"--enable-unicode"]
args << '--enable-outputs' if ARGV.include?('--outputs')
args << '--enable-visualizer' if ARGV.include?('--visualizer')
args << '--enable-clock' if ARGV.include?('--clock')
system "./configure", *args
system "make install"
end
end