pianobar - fix for non-/usr/local installs

master
Adam Vandenberg 2011-02-21 22:11:40 -08:00
parent 11f160f4fb
commit 873cb4e4aa
1 changed files with 3 additions and 1 deletions

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