[120703] trunk/dports/science/root6/Portfile

mojca at macports.org mojca at macports.org
Thu Jun 5 16:58:25 PDT 2014


Revision: 120703
          https://trac.macports.org/changeset/120703
Author:   mojca at macports.org
Date:     2014-06-05 16:58:25 -0700 (Thu, 05 Jun 2014)
Log Message:
-----------
root6: use libc++ on < 10.9 (#43917)

Modified Paths:
--------------
    trunk/dports/science/root6/Portfile

Modified: trunk/dports/science/root6/Portfile
===================================================================
--- 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}
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140605/26d0756b/attachment.html>


More information about the macports-changes mailing list