diff options
| author | Jack Nagel | 2014-03-17 11:12:54 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-17 11:12:54 -0500 |
| commit | 3db36e1b94f53e5339cae6e62a1b838fba1b525b (patch) | |
| tree | 373eaa2077b9a0608ec016ca55c64c23f5013a4a /Library/Formula | |
| parent | e8d4ad83dc2d1d48b3f554206884b9c7eafea3ac (diff) | |
| download | homebrew-3db36e1b94f53e5339cae6e62a1b838fba1b525b.tar.bz2 | |
sdelta3: pass vars to make
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/sdelta3.rb | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Library/Formula/sdelta3.rb b/Library/Formula/sdelta3.rb index 71ef3b8fa..f44d185f3 100644 --- a/Library/Formula/sdelta3.rb +++ b/Library/Formula/sdelta3.rb @@ -11,12 +11,6 @@ class Sdelta3 < Formula # Sdelta3 code is not 64-bit clean ENV.m32 - inreplace 'Makefile' do |s| - s.change_make_var! "PREFIX", prefix - s.change_make_var! "CC", ENV.cc - s.change_make_var! "CFLAGS", ENV.cflags - end - # fix verbatim references to /usr inreplace 'sd3', "/usr/share", "#{HOMEBREW_PREFIX}/share" @@ -24,7 +18,10 @@ class Sdelta3 < Formula # Makefile installs LICENSE into /usr/share/sdelta3, not into /usr/doc/sdelta inreplace 'sdelta3.c', "/usr/doc/sdelta", "#{HOMEBREW_PREFIX}/share/#{name}" - system "make install" + system "make", "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "PREFIX=#{prefix}", + "install" end end |
