aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2009-09-26 20:01:16 -0700
committerMax Howell2009-09-30 18:04:04 +0100
commit1e90fdfdf7d58823bc0a8c5dda568a9ef7209094 (patch)
tree42855d1e5d5aade7d0341b8305148774fdbeb36b /Library
parent491159d01f515f2be3d891076d831ed3140d66a0 (diff)
downloadhomebrew-1e90fdfdf7d58823bc0a8c5dda568a9ef7209094.tar.bz2
Add CPPFLAG for ncurses flag under 10.6.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brewkit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/brewkit.rb b/Library/Homebrew/brewkit.rb
index 451911143..2b10a517e 100644
--- a/Library/Homebrew/brewkit.rb
+++ b/Library/Homebrew/brewkit.rb
@@ -149,6 +149,11 @@ module HomebrewEnvExtension
def enable_warnings
remove_from_cflags '-w'
end
+ # Snow Leopard defines an NCURSES value the opposite of most distros
+ # See: http://bugs.python.org/issue6848
+ def ncurses_define
+ append 'CPPFLAGS', "-DNCURSES_OPAQUE=0"
+ end
# returns the compiler we're using
def cc
ENV['CC'] or "gcc"