aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-07 16:50:45 -0700
committerAdam Vandenberg2010-08-07 18:08:52 -0700
commitcdf768bc328f01e64e9f74551ff4b40d5cf0da70 (patch)
tree8191cd26eed7bb0427ae70dc4d898927dc417756
parentdc49a5fa6ab10ecdb21061aa1b2f9ef68f91cfdd (diff)
downloadhomebrew-cdf768bc328f01e64e9f74551ff4b40d5cf0da70.tar.bz2
Put /usr/X11/bin in PATH when requesting X11.
-rw-r--r--Library/Homebrew/extend/ENV.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb
index a05f02d98..f668fb092 100644
--- a/Library/Homebrew/extend/ENV.rb
+++ b/Library/Homebrew/extend/ENV.rb
@@ -151,9 +151,12 @@ module HomebrewEnvExtension
def libxml2
append_to_cflags ' -I/usr/include/libxml2'
end
+
def x11
opoo "You do not have X11 installed, this formula may not build." if not x11_installed?
-
+
+ # There are some config scripts (e.g. freetype) here that should go in the path
+ ENV.prepend 'PATH', '/usr/X11/bin', ':'
# CPPFLAGS are the C-PreProcessor flags, *not* C++!
append 'CPPFLAGS', '-I/usr/X11R6/include'
append 'LDFLAGS', '-L/usr/X11R6/lib'
@@ -161,6 +164,7 @@ module HomebrewEnvExtension
append 'CMAKE_PREFIX_PATH', '/usr/X11R6', ':'
end
alias_method :libpng, :x11
+
# we've seen some packages fail to build when warnings are disabled!
def enable_warnings
remove_from_cflags '-w'