2010-01-30 03:18:52 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Pianobar < Formula
|
2010-11-10 18:16:28 +00:00
|
|
|
homepage 'https://github.com/PromyLOPh/pianobar/'
|
2013-05-22 02:08:08 +00:00
|
|
|
url 'https://github.com/PromyLOPh/pianobar/archive/2013.05.19.tar.gz'
|
|
|
|
sha256 'fa4cf45c3f6143b5597269ce2a5178a49acee5b279cc2d9a132e40fa845bb647'
|
2010-01-30 03:18:52 +00:00
|
|
|
|
2011-05-27 05:02:55 +00:00
|
|
|
head 'https://github.com/PromyLOPh/pianobar.git'
|
2010-10-07 23:49:20 +00:00
|
|
|
|
2013-02-10 07:22:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-07-15 14:11:41 +00:00
|
|
|
depends_on 'libao'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'faad2'
|
2011-11-12 01:05:49 +00:00
|
|
|
depends_on 'gnutls'
|
2012-11-15 18:27:17 +00:00
|
|
|
depends_on 'libgcrypt'
|
2012-05-07 15:30:00 +00:00
|
|
|
depends_on 'json-c'
|
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'
|
|
|
|
"#{ENV["CPPFLAGS"]} #{ENV["LDFLAGS"]}"
|
2011-05-05 18:18:42 +00:00
|
|
|
|
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
|
|
|
|
2010-12-09 02:22:18 +00:00
|
|
|
# Install contrib folder too, why not.
|
2012-07-09 05:06:13 +00:00
|
|
|
prefix.install 'contrib'
|
2010-01-30 03:18:52 +00:00
|
|
|
end
|
|
|
|
end
|