Modified: trunk/dports/www/webkit-gtk-2.0/Portfile (116530 => 116531)
--- 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