Modified: trunk/dports/science/root6/Portfile (120702 => 120703)
--- trunk/dports/science/root6/Portfile 2014-06-05 22:51:34 UTC (rev 120702)
+++ trunk/dports/science/root6/Portfile 2014-06-05 23:58:25 UTC (rev 120703)
@@ -37,6 +37,27 @@
configure.dir ${workpath}/build
build.dir ${configure.dir}
+# (copied from llvm-3.5)
+# TODO: Check ${configure.cxx_stdlib} directly once MacPorts 2.3 is released
+platform darwin {
+ # Note that we are forcing this choice. This means that anything linking
+ # against llvm-3.5 needs to also be using libc++. This is possibly
+ # problematic, but luckily there is just a limited set of such dependents.
+
+ if {[info exists configure.cxx_stdlib]} {
+ configure.cxx_stdlib libc++
+ }
+
+ depends_lib-append port:libcxx
+}
+pre-fetch {
+ if {(${os.major} < 13 && ! [info exists configure.cxx_stdlib]) ||
+ (! [file exists /usr/lib/libc++.dylib])} {
+ ui_error "$name requires a C++11 runtime, which your configuration does not allow"
+ error "unsupported configuration"
+ }
+}
+
post-extract {
file mkdir ${configure.dir}
}