homebrew-core/Formula/ncmpcpp.rb
2015-09-09 22:07:39 +01:00

70 lines
1.9 KiB
Ruby

class Ncmpcpp < Formula
desc "Ncurses-based client for the Music Player Daemon"
homepage "http://ncmpcpp.rybczak.net/"
url "http://ncmpcpp.rybczak.net/stable/ncmpcpp-0.6.6.tar.bz2"
sha256 "2b7408b207c3ffd1ddd11bcb9c0a1f2434bb80db990dcf482968cf915ebc0e67"
bottle do
cellar :any
sha256 "d063bae471ea0a7af3bc33adb96d6963f7b703a20eb2d178624aafe42a7ee359" => :yosemite
sha256 "c6a96d12f6b6d29c5261b80c9ea11504e2e823515ca51aa2df6ff71928154d1b" => :mavericks
sha256 "6f09296129ada8c0e511150640f7f44439bf1a56829776a6245f3a9e9640ca2d" => :mountain_lion
end
head do
url "git://repo.or.cz/ncmpcpp.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
deprecated_option "outputs" => "with-outputs"
deprecated_option "visualizer" => "with-visualizer"
deprecated_option "clock" => "with-clock"
option "with-outputs", "Compile with mpd outputs control"
option "with-visualizer", "Compile with built-in visualizer"
option "with-clock", "Compile with optional clock tab"
depends_on "pkg-config" => :build
depends_on "libmpdclient"
depends_on "readline"
if MacOS.version < :mavericks
depends_on "boost" => "c++11"
depends_on "taglib" => "c++11"
else
depends_on "boost"
depends_on "taglib"
end
depends_on "fftw" if build.with? "visualizer"
needs :cxx11
def install
ENV.cxx11
ENV.append "LDFLAGS", "-liconv"
args = [
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-taglib",
"--with-curl",
"--enable-unicode",
]
args << "--enable-outputs" if build.with? "outputs"
args << "--enable-visualizer" if build.with? "visualizer"
args << "--enable-clock" if build.with? "clock"
if build.head?
# Also runs configure
system "./autogen.sh", *args
else
system "./configure", *args
end
system "make", "install"
end
end