[154300] trunk/dports/devel/jsoncpp/Portfile
michaelld at macports.org
michaelld at macports.org
Wed Oct 26 18:55:34 CEST 2016
Revision: 154300
https://trac.macports.org/changeset/154300
Author: michaelld at macports.org
Date: 2016-10-26 18:55:34 +0200 (Wed, 26 Oct 2016)
Log Message:
-----------
jsoncpp*: require a c++11 compliant compiler.
Modified Paths:
--------------
trunk/dports/devel/jsoncpp/Portfile
Modified: trunk/dports/devel/jsoncpp/Portfile
===================================================================
--- trunk/dports/devel/jsoncpp/Portfile 2016-10-26 16:52:52 UTC (rev 154299)
+++ trunk/dports/devel/jsoncpp/Portfile 2016-10-26 16:55:34 UTC (rev 154300)
@@ -48,3 +48,32 @@
configure.args-append \
-DBUILD_SHARED_LIBS=ON \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=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: <http://lists.macports.org/pipermail/macports-changes/attachments/20161026/edff7758/attachment-0002.html>
More information about the macports-changes
mailing list