aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-02-27 04:06:13 +0000
committerMax Howell2012-02-27 04:06:39 +0000
commitf3d177a99b5ef68ed6b43d32efcd750d0490172c (patch)
tree02930e868e68a4cfbcca7f02b7d3e3b7d1234f89 /Library
parent2049ce9f5c1b47254697681056874a17149d29c3 (diff)
downloadbrew-f3d177a99b5ef68ed6b43d32efcd750d0490172c.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-xLibrary/Homebrew/build.rb7
-rw-r--r--Library/Homebrew/extend/ENV.rb3
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'