2014-05-23 18:14:40 +00:00
|
|
|
require "formula"
|
2010-01-30 03:18:52 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pianobar < Formula
|
2014-05-23 18:14:40 +00:00
|
|
|
homepage "https://github.com/PromyLOPh/pianobar/"
|
2014-06-20 19:10:24 +00:00
|
|
|
url "https://github.com/PromyLOPh/pianobar/archive/2014.06.08.tar.gz"
|
|
|
|
sha256 "55f0105b8bf20af0a74f3ef2f928e81d9fdccc50fe86548f7db7992f523c3529"
|
|
|
|
head "https://github.com/PromyLOPh/pianobar.git"
|
2010-10-07 23:49:20 +00:00
|
|
|
|
2014-05-23 18:14:40 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "libao"
|
|
|
|
depends_on "mad"
|
|
|
|
depends_on "faad2"
|
|
|
|
depends_on "gnutls"
|
|
|
|
depends_on "libgcrypt"
|
|
|
|
depends_on "json-c"
|
2014-06-20 19:10:24 +00:00
|
|
|
depends_on "ffmpeg"
|
2010-01-30 03:18:52 +00:00
|
|
|
|
2012-03-18 20:33:24 +00:00
|
|
|
fails_with :llvm do
|
|
|
|
build 2334
|
|
|
|
cause "Reports of this not compiling on Xcode 4"
|
|
|
|
end
|
2011-06-15 15:42:02 +00:00
|
|
|
|
2010-01-30 03:18:52 +00:00
|
|
|
def install
|
2012-03-11 21:38:11 +00:00
|
|
|
# Discard Homebrew's CFLAGS as Pianobar reportedly doesn't like them
|
2011-07-28 20:06:00 +00:00
|
|
|
ENV['CFLAGS'] = "-O2 -DNDEBUG " +
|
2012-07-08 16:10:27 +00:00
|
|
|
# Or it doesn't build at all
|
|
|
|
"-std=c99 " +
|
|
|
|
# build if we aren't /usr/local'
|
2013-06-24 03:50:03 +00:00
|
|
|
"#{ENV.cppflags} #{ENV.ldflags}"
|
2010-07-15 14:11:41 +00:00
|
|
|
system "make", "PREFIX=#{prefix}"
|
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2011-05-05 18:18:42 +00:00
|
|
|
|
2014-05-23 18:14:40 +00:00
|
|
|
prefix.install "contrib"
|
2010-01-30 03:18:52 +00:00
|
|
|
end
|
|
|
|
end
|