Changeset 154300


Ignore:
Timestamp:
Oct 26, 2016, 4:55:34 PM (13 months ago)
Author:
michaelld@…
Message:

jsoncpp*: require a c++11 compliant compiler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/jsoncpp/Portfile

    r154292 r154300  
    4949                    -DBUILD_SHARED_LIBS=ON \
    5050                    -DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
     51
     52# require c++11
     53
     54if {${configure.cxx_stdlib} eq "libstdc++"} {
     55
     56    # *clang* when using libstdc++ do not seem to support C++11;
     57    # C++11 support seems to need GCC 4.7+ when using libstdc++;
     58    # could use C++0x support on GCC4.[56], but just ignore it since
     59    # there are newer compilers already in place as defaults.
     60
     61    # Blacklist GCC compilers not supporting C++11 and all CLANG.
     62    # This is probably not necessary, but it's good practice.
     63
     64    compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
     65
     66    # and whitelist those we do want to use. wish there were a better way.
     67    # these will be used in the order provided.
     68
     69    compiler.whitelist macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
     70
     71} else {
     72
     73    # using libc++;
     74    # Blacklist Clang not supporting C++11 in some form and all GCC.
     75    # Just use the cxx11 PortGroup for this specific case.
     76
     77    PortGroup cxx11 1.0
     78
     79}
Note: See TracChangeset for help on using the changeset viewer.