[113530] trunk/dports/science/root/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Tue Nov 19 03:39:08 PST 2013
Revision: 113530
https://trac.macports.org/changeset/113530
Author: jeremyhu at macports.org
Date: 2013-11-19 03:39:08 -0800 (Tue, 19 Nov 2013)
Log Message:
-----------
root: Build C++11 support if the runtime supports it (#39975)
Modified Paths:
--------------
trunk/dports/science/root/Portfile
Modified: trunk/dports/science/root/Portfile
===================================================================
--- trunk/dports/science/root/Portfile 2013-11-19 11:30:33 UTC (rev 113529)
+++ trunk/dports/science/root/Portfile 2013-11-19 11:39:08 UTC (rev 113530)
@@ -5,6 +5,7 @@
name root
version 5.34.11
+revision 1
categories science
maintainers gmail.com:mattiafrancescomoro hep.phy.cam.ac.uk:jonesc
@@ -111,6 +112,26 @@
--enable-fink \
--enable-gdml
+platform darwin {
+ 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 {${cxx_stdlib} == "libc++"} {
+ configure.args-delete --disable-c++11
+ configure.args-append --enable-c++11
+ }
+}
+
universal_variant no
default_variants +ssl +xml +gsl +minuit2 +tmva +roofit +graphviz +opengl +soversion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131119/f8917224/attachment.html>
More information about the macports-changes
mailing list