[115135] trunk/dports/www/webkit-gtk/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Dec 25 17:11:25 PST 2013


Revision: 115135
          https://trac.macports.org/changeset/115135
Author:   jeremyhu at macports.org
Date:     2013-12-25 17:11:24 -0800 (Wed, 25 Dec 2013)
Log Message:
-----------
webkit-gtk: Check configure.cxx_stdlib during pre-configure

Modified Paths:
--------------
    trunk/dports/www/webkit-gtk/Portfile

Modified: trunk/dports/www/webkit-gtk/Portfile
===================================================================
--- trunk/dports/www/webkit-gtk/Portfile	2013-12-25 20:51:36 UTC (rev 115134)
+++ trunk/dports/www/webkit-gtk/Portfile	2013-12-26 01:11:24 UTC (rev 115135)
@@ -85,20 +85,20 @@
         --enable-webgl
 
 platform darwin {
-    set cxx_stdlib {}
+    pre-configure {
+        set cxx_stdlib {}
 
-    if {[info exists configure.cxx_stdlib] &&
-        ${configure.cxx_stdlib} ne {} &&
-        [string match *clang* ${configure.cxx}]} {
-        set cxx_stdlib ${configure.cxx_stdlib}
-    } elseif {[string match *clang* ${configure.cxx}] &&
-              ${os.major} >= 13} {
-        set cxx_stdlib libc++
-    } else {
-        set cxx_stdlib libstdc++
-    }
+        if {[info exists configure.cxx_stdlib] &&
+            ${configure.cxx_stdlib} ne {} &&
+            [string match *clang* ${configure.cxx}]} {
+            set cxx_stdlib ${configure.cxx_stdlib}
+        } elseif {[string match *clang* ${configure.cxx}] &&
+                  ${os.major} >= 13} {
+            set cxx_stdlib libc++
+        } else {
+            set cxx_stdlib libstdc++
+        }
 
-    pre-configure {
         if {${cxx_stdlib} eq "libstdc++"} {
             ui_error "${subport} is not supported for this installation of MacPorts.  It requires libc++ be selected as your C++ runtime.  Please use ${subport}-2.0 instead"
             error "unsupported configuration"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131225/988c04d5/attachment.html>


More information about the macports-changes mailing list