Changeset 142082


Ignore:
Timestamp:
Nov 3, 2015, 10:22:07 AM (2 years ago)
Author:
nicos@…
Message:

akonadi: fully enforcing the requirement of c++11 with the cxx11 PortGroup

File:
1 edited

Legend:

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

    r142081 r142082  
    44PortSystem          1.0
    55PortGroup           kde4    1.1
     6PortGroup           cxx11   1.0
    67
    78#Fetch from git repository to follow updates after the end of KDE4 public releases
     
    2728                    port:shared-mime-info
    2829
    29 # require c++11
    30 
    3130post-patch {
    3231    reinplace "s/c++0x/c++11/" ${worksrcpath}/CMakeLists.txt
    33 }
    34 
    35 if {${configure.cxx_stdlib} eq "libstdc++"} {
    36 
    37     # *clang* when using libstdc++ do not seem to support C++11;
    38     # C++11 support seems to need GCC 4.7+ when using libstdc++;
    39     # could use C++0x support on GCC4.[56], but just ignore it since
    40     # there are newer compilers already in place as defaults.
    41 
    42     # Blacklist GCC compilers not supporting C++11 and all CLANG.
    43     # This is probably not necessary, but it's good practice.
    44 
    45     compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
    46 
    47     # and whitelist GCC compilers that support C++11. wish there were
    48     # a better way.  these will be used in the order provided.
    49 
    50     compiler.whitelist macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
    51 
    52 } else {
    53 
    54     # using libc++;
    55     # Blacklist Clang not supporting C++11 in some form and all GCC.
    56     # Just use the cxx11 PortGroup for this specific case.
    57 
    58     PortGroup cxx11 1.0
    59 
    6032}
    6133
Note: See TracChangeset for help on using the changeset viewer.