[122791] trunk/dports/_resources/port1.0/group/wxWidgets-1.0.tcl

mojca at macports.org mojca at macports.org
Tue Jul 29 15:53:30 PDT 2014


Revision: 122791
          https://trac.macports.org/changeset/122791
Author:   mojca at macports.org
Date:     2014-07-29 15:53:30 -0700 (Tue, 29 Jul 2014)
Log Message:
-----------
wxWidgets-1.0.tcl: add wxWidgets-3.0-libcxx to allow building of C++11 apps on pre-10.9

Modified Paths:
--------------
    trunk/dports/_resources/port1.0/group/wxWidgets-1.0.tcl

Modified: trunk/dports/_resources/port1.0/group/wxWidgets-1.0.tcl
===================================================================
--- trunk/dports/_resources/port1.0/group/wxWidgets-1.0.tcl	2014-07-29 21:10:48 UTC (rev 122790)
+++ trunk/dports/_resources/port1.0/group/wxWidgets-1.0.tcl	2014-07-29 22:53:30 UTC (rev 122791)
@@ -99,6 +99,17 @@
                 return -code error "incompatible Mac OS X version"
             }
         }
+    # ugly workaround to allow some C++11-only applications to be built on < 10.9
+    } elseif {${args} eq "wxWidgets-3.0-libcxx"} {
+        wxWidgets.name      "wxWidgets"
+        wxWidgets.version   "3.0-libcxx"
+        wxWidgets.port      "wxWidgets-3.0-libcxx"
+        if {${os.major} < 9} {
+            pre-fetch {
+                ui_error "${wxWidgets.port} requires Mac OS X 10.5 or later."
+                return -code error "incompatible Mac OS X version"
+            }
+        }
     } elseif {${args} eq "wxPython-3.0"} {
         wxWidgets.name      "wxPython"
         wxWidgets.version   "3.0"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140729/655c5825/attachment-0001.html>


More information about the macports-changes mailing list