diff options
| author | Adam Vandenberg | 2010-07-29 12:12:51 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-29 12:12:51 -0700 |
| commit | 1e9c56304b773fe667fcbfd171fcdc5948633a4b (patch) | |
| tree | 7672a4d95b88e8d0c49c2d62fd567402403cb41c /Library/Formula | |
| parent | 45183495c1511f9c93de8df6879041fef56948d3 (diff) | |
| download | homebrew-1e9c56304b773fe667fcbfd171fcdc5948633a4b.tar.bz2 | |
Fix exim builds for non-/usr/local HOMEBREW_PREFIX
Fixes #1472.
Did not apply the patch back to ENV, because some software will fail
if it sees "-isystem" parameters (esp. software using apxs)
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/exim.rb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Library/Formula/exim.rb b/Library/Formula/exim.rb index 19e0da5c2..6c9e3b4b9 100644 --- a/Library/Formula/exim.rb +++ b/Library/Formula/exim.rb @@ -21,17 +21,20 @@ class Exim <Formula s << "LOOKUP_INCLUDE=-I#{HOMEBREW_PREFIX}/include\n" s << "LOOKUP_LIBS=-L#{HOMEBREW_PREFIX}/lib\n" end - + inreplace 'OS/Makefile-Darwin' do |s| s.remove_make_var! %w{CC CFLAGS} end - + + # The compile script ignores CPPFLAGS + ENV.append "CFLAGS", ENV['CPPFLAGS'] + system "make" system "make INSTALL_ARG=-no_chown install" (man + 'man8').install 'doc/exim.8' (bin + 'exim_ctl').write startup_script end - + #inspired from macports startup script, but with fixed restart issue due to missing setuid def startup_script return <<-END @@ -57,7 +60,7 @@ stop) esac END end - + def caveats <<-EOS.undent Start with: |
