aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-14 10:45:24 -0700
committerAdam Vandenberg2011-04-14 10:45:24 -0700
commitf44f9a5a99f11ddeeb4c1f22d5a7b06daeeee3d6 (patch)
tree26c96076287bb452a012600d514fd987e1e716d6 /Library
parent5eeb241345fcd479b2fd9a684e1875311e1e84ed (diff)
downloadhomebrew-f44f9a5a99f11ddeeb4c1f22d5a7b06daeeee3d6.tar.bz2
Pianobar 2011.04.10
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/pianobar.rb12
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}"