homebrew-core/Formula/pianobar.rb

36 lines
1,023 B
Ruby
Raw Normal View History

2014-05-23 18:14:40 +00:00
require "formula"
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/"
url "https://github.com/PromyLOPh/pianobar/archive/2014.06.08.tar.gz"
sha256 "55f0105b8bf20af0a74f3ef2f928e81d9fdccc50fe86548f7db7992f523c3529"
head "https://github.com/PromyLOPh/pianobar.git"
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"
depends_on "ffmpeg"
fails_with :llvm do
build 2334
cause "Reports of this not compiling on Xcode 4"
end
2011-06-15 15:42:02 +00:00
def install
# Discard Homebrew's CFLAGS as Pianobar reportedly doesn't like them
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}"
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"
2014-05-23 18:14:40 +00:00
prefix.install "contrib"
end
end