aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-11 14:43:58 -0700
committerAdam Vandenberg2012-03-11 14:43:58 -0700
commit6dabda44fff8608363db34937a9a95bd7dd0f648 (patch)
treef46c84c2656eb262ca69c9da432b9f6a589a412b
parent2f5c81f1a9c6bae44d104812a1a4e6050ca5c75b (diff)
downloadhomebrew-6dabda44fff8608363db34937a9a95bd7dd0f648.tar.bz2
pngcrush: pass flags to make instead of using inreplace
-rw-r--r--Library/Formula/pngcrush.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/Library/Formula/pngcrush.rb b/Library/Formula/pngcrush.rb
index 5e9819214..3d1325d1d 100644
--- a/Library/Formula/pngcrush.rb
+++ b/Library/Formula/pngcrush.rb
@@ -6,12 +6,10 @@ class Pngcrush < Formula
md5 '9f29bd4bc05ae1415e5ad10241798794'
def install
- # use our CFLAGS, LDFLAGS, CC, and LD
- inreplace 'Makefile' do |s|
- s.remove_make_var! %w[CFLAGS LDFLAGS CC LD]
- end
-
- system "make"
+ system "make", "CC=#{ENV.cc}",
+ "LD=#{ENV.cc}",
+ "CFLAGS=#{ENV.cflags}",
+ "LDFLAGS=#{ENV.ldflags}"
bin.install 'pngcrush'
end
end