aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/brewkit.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-21 20:55:41 -0700
committerAdam Vandenberg2009-09-21 20:55:41 -0700
commit36bb590e826b0d690b61557de3bc6fd52205a4e2 (patch)
tree4c6b65e499675fe9d9c6b1b28bfd142fb2102170 /Library/Homebrew/brewkit.rb
parent8d7ebb8ba3390603c0135edae7c9561b1e04cc16 (diff)
downloadbrew-36bb590e826b0d690b61557de3bc6fd52205a4e2.tar.bz2
Rename :libpng to :x11 and alias.
Diffstat (limited to 'Library/Homebrew/brewkit.rb')
-rw-r--r--Library/Homebrew/brewkit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 37f2adbab..be22ca675 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -133,12 +133,12 @@ module HomebrewEnvExtension
def libxml2
append_to_cflags ' -I/usr/include/libxml2'
end
- # TODO rename or alias to x11
- def libpng
+ def x11
# CPPFLAGS are the C-PreProcessor flags, *not* C++!
append 'CPPFLAGS', '-I/usr/X11R6/include'
append 'LDFLAGS', '-L/usr/X11R6/lib'
end
+ alias_method :libpng, :x11
# we've seen some packages fail to build when warnings are disabled!
def enable_warnings
remove_from_cflags '-w'