diff options
| author | Nicholas Robison | 2013-07-12 14:43:15 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-08-30 22:33:38 -0700 |
| commit | 225d53f3507e3e4d0d2754c25d2e11871d9a1504 (patch) | |
| tree | 9f4f8174fff0f63d4e1a1b992c461c909dbf79a2 | |
| parent | 84fc65e55da20cd129ab4c0b57fc60767e7b62e7 (diff) | |
| download | homebrew-225d53f3507e3e4d0d2754c25d2e11871d9a1504.tar.bz2 | |
wxmac: add arch flags
When using as a dependency for SAGA GIS, the missing architecture flags causes
it to fail. These extra flags help it compile correctly.
Closes #21179.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/wxmac.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Formula/wxmac.rb b/Library/Formula/wxmac.rb index bb1908286..a9ea1d0cb 100644 --- a/Library/Formula/wxmac.rb +++ b/Library/Formula/wxmac.rb @@ -54,9 +54,15 @@ class Wxmac < Formula def install # need to set with-macosx-version-min to avoid configure defaulting to 10.5 + # need to enable universal binary build in order to build all x86_64 headers + # need to specify x86_64 and i386 or will try to build for ppc arch and fail on newer OSes + # https://trac.macports.org/browser/trunk/dports/graphics/wxWidgets30/Portfile#L80 + ENV.universal_binary args = [ "--disable-debug", "--prefix=#{prefix}", + "--enable-shared", + "--enable-monolithic", "--enable-unicode", "--enable-std_string", "--enable-display", @@ -72,6 +78,8 @@ class Wxmac < Formula "--enable-svg", "--with-expat", "--with-macosx-version-min=#{MacOS.version}", + "--with-macosx-sdk=#{MacOS.sdk_path}", + "--enable-universal_binary=#{Hardware::CPU.universal_archs.join(',')}", "--disable-precomp-headers" ] |
