homebrew-core/Formula/ncmpcpp.rb
nibbles 2bits 93b8b766ed ncmpcpp: add pkg-config, update fails_with
ncmpcpp has a build-time dep on pkg-config so that it can find
libmpdclient, and it needs the `fails_with` version updated
because it still has problems with clang.

Add a dep on pkg-config
Update the fails_with build.
Use the new options DSL.
Tested on ML with clang and llvm from XCode-4.4.1.

Fixes Homebrew/homebrew#14160

Closes Homebrew/homebrew#14172.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-08-14 15:38:43 -05:00

36 lines
1.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 'pkg-config' => :build
depends_on 'taglib'
depends_on 'libmpdclient'
depends_on 'fftw' if build.include? "visualizer"
fails_with :clang do
build 421
cause "'itsTempString' is a private member of 'NCurses::basic_buffer<char>'"
end
option 'outputs', 'Compile with mpd outputs control'
option 'visualizer', 'Compile with built-in visualizer'
option 'clock', 'Compile with optional clock tab'
def install
ENV.append 'LDFLAGS', '-liconv'
args = ["--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-taglib",
"--with-curl",
"--enable-unicode"]
args << '--enable-outputs' if build.include? 'outputs'
args << '--enable-visualizer' if build.include? 'visualizer'
args << '--enable-clock' if build.include? 'clock'
system "./configure", *args
system "make install"
end
end