[142719] trunk/dports/science/volk-gnss-sdr/Portfile
michaelld at macports.org
michaelld at macports.org
Sat Dec 12 06:56:49 PST 2015
Revision: 142719
https://trac.macports.org/changeset/142719
Author: michaelld at macports.org
Date: 2015-11-20 12:53:36 -0800 (Fri, 20 Nov 2015)
Log Message:
-----------
volk-gnss-sdr*: require c++11.
Modified Paths:
--------------
trunk/dports/science/volk-gnss-sdr/Portfile
Modified: trunk/dports/science/volk-gnss-sdr/Portfile
===================================================================
--- trunk/dports/science/volk-gnss-sdr/Portfile 2015-11-20 20:53:19 UTC (rev 142718)
+++ trunk/dports/science/volk-gnss-sdr/Portfile 2015-11-20 20:53:36 UTC (rev 142719)
@@ -113,3 +113,32 @@
configure.args-append \
-DCMAKE_MODULES_DIR=${prefix}/share/cmake
+
+# 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/e9517b6d/attachment-0001.html>
More information about the macports-changes
mailing list