[142718] trunk/dports/science/gnss-sdr/Portfile

michaelld at macports.org michaelld at macports.org
Sat Dec 12 06:56:34 PST 2015


Revision: 142718
          https://trac.macports.org/changeset/142718
Author:   michaelld at macports.org
Date:     2015-11-20 12:53:19 -0800 (Fri, 20 Nov 2015)
Log Message:
-----------
gnss-sdr: require c++11.

Modified Paths:
--------------
    trunk/dports/science/gnss-sdr/Portfile

Modified: trunk/dports/science/gnss-sdr/Portfile
===================================================================
--- trunk/dports/science/gnss-sdr/Portfile	2015-11-20 20:52:13 UTC (rev 142717)
+++ trunk/dports/science/gnss-sdr/Portfile	2015-11-20 20:53:19 UTC (rev 142718)
@@ -236,3 +236,32 @@
         -DENABLE_GN3S=OFF
 
 }
+
+# require c++11
+
+if {${configure.cxx_stdlib} eq "libstdc++"} {
+
+    # *clang* when using libstdc++ do not seem to support C++11;
+    # C++11 support seems to need GCC 4.7+ when using libstdc++;
+    # could use C++0x support on GCC4.[56], but just ignore it since
+    # there are newer compilers already in place as defaults.
+
+    # Blacklist GCC compilers not supporting C++11 and all CLANG.
+    # This is probably not necessary, but it's good practice.
+
+    compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
+
+    # and whitelist those we do want to use. wish there were a better way.
+    # these will be used in the order provided.
+
+    compiler.whitelist macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
+
+} else {
+
+    # using libc++;
+    # Blacklist Clang not supporting C++11 in some form and all GCC.
+    # Just use the cxx11 PortGroup for this specific case.
+
+    PortGroup cxx11 1.0
+
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/427f30dd/attachment.html>


More information about the macports-changes mailing list