diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pianobar.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Formula/pianobar.rb b/Library/Formula/pianobar.rb index e93842477..a3c50a18f 100644 --- a/Library/Formula/pianobar.rb +++ b/Library/Formula/pianobar.rb @@ -1,10 +1,10 @@ require 'formula' class Pianobar < Formula - url 'https://github.com/PromyLOPh/pianobar/tarball/2011.01.24' - version '2011.01.24' + url 'https://github.com/PromyLOPh/pianobar/tarball/2011.04.10' + version '2011.04.10' homepage 'https://github.com/PromyLOPh/pianobar/' - md5 '97ee5b39e5e9006f6139db2787f346a0' + md5 '813d3a9ee5dc23d6a68dd2a020096d06' head 'git://github.com/PromyLOPh/pianobar.git' @@ -15,8 +15,12 @@ class Pianobar < Formula skip_clean :bin def install + ENV.delete 'CFLAGS' # Pianobar uses c99 instead of gcc; remove our gcc flags. + + # Enable 64-bit builds if needed + w_flag = MacOS.prefer_64_bit? ? "-W64" : "" inreplace "Makefile" do |s| - s.gsub! "CFLAGS:=-std=c99 -O2 -DNDEBUG", "CFLAGS=-std=c99 #{ENV.cflags} #{ENV['CPPFLAGS']} #{ENV['LDFLAGS']}" + s.gsub! "CFLAGS:=-O2 -DNDEBUG", "CFLAGS:=-O2 -DNDEBUG #{w_flag}" end system "make", "PREFIX=#{prefix}" system "make", "install", "PREFIX=#{prefix}" |
