[116531] trunk/dports/www/webkit-gtk-2.0/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Mon Jan 27 10:59:03 PST 2014
Revision: 116531
https://trac.macports.org/changeset/116531
Author: jeremyhu at macports.org
Date: 2014-01-27 10:59:03 -0800 (Mon, 27 Jan 2014)
Log Message:
-----------
webkit-gtk-2.0: Don't use webkit-gtk-2.0 unless it is needed as a fallback
Modified Paths:
--------------
trunk/dports/www/webkit-gtk-2.0/Portfile
Modified: trunk/dports/www/webkit-gtk-2.0/Portfile
===================================================================
--- trunk/dports/www/webkit-gtk-2.0/Portfile 2014-01-27 16:52:03 UTC (rev 116530)
+++ trunk/dports/www/webkit-gtk-2.0/Portfile 2014-01-27 18:59:03 UTC (rev 116531)
@@ -82,6 +82,29 @@
--enable-geolocation \
--enable-webgl
+# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
+platform darwin {
+ pre-configure {
+ set cxxstdlib {}
+
+ if {[info exists configure.cxx_stdlib] &&
+ ${configure.cxx_stdlib} ne {} &&
+ [string match *clang* ${configure.cxx}]} {
+ set cxxstdlib ${configure.cxx_stdlib}
+ } elseif {[string match *clang* ${configure.cxx}] &&
+ ${os.major} >= 13} {
+ set cxxstdlib libc++
+ } else {
+ set cxxstdlib libstdc++
+ }
+
+ if {${cxxstdlib} eq "libc++"} {
+ ui_error "${name} is provided for configurations that are unable to use webkit-gtk. Since you are on Mavericks or later (or have configured MacPorts to use libc++), please use webkit-gtk or webkit-gtk-devel instead."
+ error "unsupported configuration"
+ }
+ }
+}
+
subport webkit-gtk3-2.0 {
conflicts webkit-gtk3 webkit-gtk3-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140127/ddcf235d/attachment-0001.html>
More information about the macports-changes
mailing list