diff options
| author | Adam Vandenberg | 2011-04-14 10:45:24 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-14 10:45:24 -0700 |
| commit | f44f9a5a99f11ddeeb4c1f22d5a7b06daeeee3d6 (patch) | |
| tree | 26c96076287bb452a012600d514fd987e1e716d6 /Library/Formula | |
| parent | 5eeb241345fcd479b2fd9a684e1875311e1e84ed (diff) | |
| download | homebrew-f44f9a5a99f11ddeeb4c1f22d5a7b06daeeee3d6.tar.bz2 | |
Pianobar 2011.04.10
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}" |
