[122792] trunk/dports/graphics/wxWidgets-3.0/Portfile
mojca at macports.org
mojca at macports.org
Tue Jul 29 15:57:44 PDT 2014
Revision: 122792
https://trac.macports.org/changeset/122792
Author: mojca at macports.org
Date: 2014-07-29 15:57:44 -0700 (Tue, 29 Jul 2014)
Log Message:
-----------
wxWidgets-3.0: allow building against non-default libc++, new subport wxWidgets-3.0-libcxx
Modified Paths:
--------------
trunk/dports/graphics/wxWidgets-3.0/Portfile
Modified: trunk/dports/graphics/wxWidgets-3.0/Portfile
===================================================================
--- trunk/dports/graphics/wxWidgets-3.0/Portfile 2014-07-29 22:53:30 UTC (rev 122791)
+++ trunk/dports/graphics/wxWidgets-3.0/Portfile 2014-07-29 22:57:44 UTC (rev 122792)
@@ -7,6 +7,7 @@
PortGroup wxWidgets 1.0
name wxWidgets-3.0
+subport wxWidgets-3.0-libcxx {}
subport wxPython-3.0 {}
subport wxgtk-3.0 {}
version 3.0.1
@@ -18,6 +19,9 @@
if {${subport} eq ${name}} {
wxWidgets.use wxWidgets-3.0
+} elseif {${subport} eq "wxWidgets-3.0-libcxx"} {
+ # ugly workaround to allow some C++11-only applications to be built on < 10.9
+ wxWidgets.use wxWidgets-3.0-libcxx
} elseif {${subport} eq "wxPython-3.0"} {
wxWidgets.use wxPython-3.0
version 3.0.0
@@ -65,6 +69,14 @@
port:libiconv \
port:expat
+if {${subport} eq "wxWidgets-3.0-libcxx"} {
+ platform darwin {
+ depends_lib-append port:libcxx
+ configure.cxxflags-append -std=c++11
+ configure.cxx_stdlib libc++
+ }
+}
+
depends_run port:wxWidgets_select
select.group wxWidgets
@@ -98,6 +110,8 @@
--enable-graphics_ctx \
--with-macosx-sdk=no \
--with-macosx-version-min=no
+configure.ldflags-append \
+ -stdlib=${configure.cxx_stdlib}
if {${subport} eq "wxPython-3.0"} {
set wxpythonsubset wxPython-${wxpython_ver}-MacPorts-subset
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140729/cf485bf8/attachment.html>
More information about the macports-changes
mailing list