wxmac: fix building for Lion

Closes Homebrew/homebrew#8378.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
This commit is contained in:
BEN ENGLISCH 2011-10-30 18:47:24 -05:00 committed by Misty De Meo
parent fbead76fec
commit 2a9d3619e5

View file

@ -82,9 +82,20 @@ class Wxmac < Formula
ENV.append compiler_flag, "-arch i386"
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-unicode"
args = [
"--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-unicode"
]
# build will fail on Lion unless we use the 10.6 sdk
if MacOS.lion?
args << "--with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk"
args << "--with-macosx-version-min=10.6"
end
system "./configure", *args
system "make install"
if build_python?