homebrew-core/Formula/pianobar.rb

38 lines
1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Pianobar < Formula
homepage 'https://github.com/PromyLOPh/pianobar/'
url 'https://github.com/PromyLOPh/pianobar/archive/2013.05.19.tar.gz'
sha256 'fa4cf45c3f6143b5597269ce2a5178a49acee5b279cc2d9a132e40fa845bb647'
2011-05-27 05:02:55 +00:00
head 'https://github.com/PromyLOPh/pianobar.git'
depends_on 'pkg-config' => :build
depends_on 'libao'
depends_on 'mad'
depends_on 'faad2'
depends_on 'gnutls'
depends_on 'libgcrypt'
depends_on 'json-c'
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'
"#{ENV["CPPFLAGS"]} #{ENV["LDFLAGS"]}"
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"
# Install contrib folder too, why not.
2012-07-09 05:06:13 +00:00
prefix.install 'contrib'
end
end