wxmac: disable monolithic build
More software requires non-monolithic builds than the other way around Closes Homebrew/homebrew#26624.
This commit is contained in:
parent
c327bfee89
commit
510aee7010
1 changed files with 6 additions and 5 deletions
|
@ -18,7 +18,6 @@ class Wxmac < Formula
|
|||
url 'http://downloads.sourceforge.net/project/wxpython/wxPython/3.0.0.0/wxPython-src-3.0.0.0.tar.bz2'
|
||||
sha1 '48451763275cfe4e5bbec49ccd75bc9652cba719'
|
||||
|
||||
option 'disable-monolithic', "Build a non-monolithic library (split into multiple files)"
|
||||
depends_on :python => :recommended
|
||||
depends_on FrameworkPython if build.with? "python"
|
||||
|
||||
|
@ -58,8 +57,9 @@ 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
|
||||
# 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 = [
|
||||
|
@ -91,9 +91,10 @@ class Wxmac < Formula
|
|||
"--with-macosx-version-min=#{MacOS.version}",
|
||||
"--with-macosx-sdk=#{MacOS.sdk_path}",
|
||||
"--enable-universal_binary=#{Hardware::CPU.universal_archs.join(',')}",
|
||||
"--disable-precomp-headers"
|
||||
"--disable-precomp-headers",
|
||||
# This is the default option, but be explicit
|
||||
"--disable-monolithic"
|
||||
]
|
||||
args << "--enable-monolithic" unless build.include? 'disable-monolithic'
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in a new issue