aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2011-02-21 22:11:40 -0800
committerAdam Vandenberg2011-02-21 22:11:40 -0800
commit0e864b907f3cdd81256a51b1c67d945bcc4a44a2 (patch)
treea86213d5a76ba3f429595af1c60601b32c16ae2c /Library/Formula
parent82c1a9d96d5af6c22d716231656bb5780575c390 (diff)
downloadhomebrew-0e864b907f3cdd81256a51b1c67d945bcc4a44a2.tar.bz2
pianobar - fix for non-/usr/local installs
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pianobar.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Formula/pianobar.rb b/Library/Formula/pianobar.rb
index c35b3693f..af6afe54c 100644
--- a/Library/Formula/pianobar.rb
+++ b/Library/Formula/pianobar.rb
@@ -15,7 +15,9 @@ class Pianobar <Formula
skip_clean :bin
def install
- ENV.delete "CFLAGS"
+ inreplace "Makefile" do |s|
+ s.gsub! "CFLAGS:=-std=c99 -O2 -DNDEBUG", "CFLAGS=-std=c99 #{ENV.cflags}"
+ end
system "make", "PREFIX=#{prefix}"
system "make", "install", "PREFIX=#{prefix}"
end