pianobar - fix for non-/usr/local installs

This commit is contained in:
Adam Vandenberg 2011-02-21 22:11:40 -08:00
parent 11f160f4fb
commit 873cb4e4aa

View file

@ -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