diff options
| author | BEN ENGLISCH | 2011-10-30 18:47:24 -0500 |
|---|---|---|
| committer | Misty De Meo | 2011-12-13 23:03:00 -0600 |
| commit | df2870641b4ed59aede85bafcdf7eb49e03b1b5a (patch) | |
| tree | d61cc39a8324eb6406c6c9ab07a9ff0f99ac5be5 /Library | |
| parent | 6ae836b046b65ba103118fedb355e5212bc5f230 (diff) | |
| download | homebrew-df2870641b4ed59aede85bafcdf7eb49e03b1b5a.tar.bz2 | |
wxmac: fix building for Lion
Closes #8378.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/wxmac.rb | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/Library/Formula/wxmac.rb b/Library/Formula/wxmac.rb index 467bc75fb..d6d3ea40d 100644 --- a/Library/Formula/wxmac.rb +++ b/Library/Formula/wxmac.rb @@ -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? |
