From 2a9d3619e526e48cf5c77eb2c480e68cdf691fd1 Mon Sep 17 00:00:00 2001 From: BEN ENGLISCH Date: Sun, 30 Oct 2011 18:47:24 -0500 Subject: [PATCH] wxmac: fix building for Lion Closes Homebrew/homebrew#8378. Signed-off-by: Misty De Meo --- Formula/wxmac.rb | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/Formula/wxmac.rb b/Formula/wxmac.rb index 467bc75fb9..d6d3ea40dc 100644 --- a/Formula/wxmac.rb +++ b/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?