diff options
| author | Adam Vandenberg | 2012-03-11 14:43:58 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-03-11 14:43:58 -0700 |
| commit | 6dabda44fff8608363db34937a9a95bd7dd0f648 (patch) | |
| tree | f46c84c2656eb262ca69c9da432b9f6a589a412b | |
| parent | 2f5c81f1a9c6bae44d104812a1a4e6050ca5c75b (diff) | |
| download | homebrew-6dabda44fff8608363db34937a9a95bd7dd0f648.tar.bz2 | |
pngcrush: pass flags to make instead of using inreplace
| -rw-r--r-- | Library/Formula/pngcrush.rb | 10 |
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 |
