wxmac: fix building for Lion

Closes Homebrew/homebrew#8378.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
master
BEN ENGLISCH 2011-10-30 18:47:24 -05:00 committed by Misty De Meo
parent fbead76fec
commit 2a9d3619e5
1 changed files with 14 additions and 3 deletions

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?