diff options
| author | Max Howell | 2012-02-27 04:06:13 +0000 |
|---|---|---|
| committer | Max Howell | 2012-02-27 04:06:39 +0000 |
| commit | 56125019d7b4ae7aaa6796d3a397049c046ddfd7 (patch) | |
| tree | 457c27861697fcfb604fc3e3c2046f35e4941a28 /Library | |
| parent | d4f0ba05c1dd45c1c05c3ec91e2e996546609a70 (diff) | |
| download | homebrew-56125019d7b4ae7aaa6796d3a397049c046ddfd7.tar.bz2 | |
Set ACLOCAL_PATH so that things work
This should mean all those formula that pass options to aclocal don't need to anymore, but I'm not risking changing them.
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/build.rb | 7 | ||||
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index a43ba6583..8f1fe3924 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -49,7 +49,12 @@ def install f ENV.prepend 'LDFLAGS', "-L#{dep.lib}" ENV.prepend 'CPPFLAGS', "-I#{dep.include}" ENV.prepend 'PATH', "#{dep.bin}", ':' - ENV.prepend 'PKG_CONFIG_PATH', dep.lib+'pkgconfig', ':' + + pcdir = dep.lib/'pkgconfig' + ENV.prepend 'PKG_CONFIG_PATH', pcdir, ':' if pcdir.directory? + + acdir = dep.share/'aclocal' + ENV.prepend 'ACLOCAL_PATH', acdir, ':' if acdir.directory? end end diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 5b002221b..6d11053fd 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -9,6 +9,9 @@ module HomebrewEnvExtension delete('CLICOLOR_FORCE') # autotools doesn't like this remove_cc_etc + # make any aclocal stuff installed in Homebrew available + ENV['ACLOCAL_PATH'] = "#{HOMEBREW_PREFIX}/share/aclocal" if MacOS.xcode_version < "4.3" + self['MAKEFLAGS'] = "-j#{self.make_jobs}" unless HOMEBREW_PREFIX.to_s == '/usr/local' |
