Ticket #49567: akonadi-cxx11.diff

File akonadi-cxx11.diff, 1.7 KB (added by ryandesign (Ryan Carsten Schmidt), 9 years ago)

proposed patch

  • Portfile

     
    44PortSystem          1.0
    55PortGroup           kde4    1.1
    66PortGroup           compiler_blacklist_versions 1.0
     7PortGroup           cxx11 1.0
    78
    89#Fetch from git repository to follow updates after the end of KDE4 public releases
    910fetch.type          git
     
    2728                    port:boost \
    2829                    port:shared-mime-info
    2930
    30 # require c++11
    31 
    3231post-patch {
    3332    reinplace "s/c++0x/c++11/" ${worksrcpath}/CMakeLists.txt
    3433}
    3534
    36 if {${configure.cxx_stdlib} eq "libstdc++"} {
    37 
    38     # *clang* when using libstdc++ do not seem to support C++11;
    39     # C++11 support seems to need GCC 4.7+ when using libstdc++;
    40     # could use C++0x support on GCC4.[56], but just ignore it since
    41     # there are newer compilers already in place as defaults.
    42 
    43     # Blacklist GCC compilers not supporting C++11 and all CLANG.
    44     # This is probably not necessary, but it's good practice.
    45 
    46     compiler.blacklist-append *clang* {*gcc-3*} {*gcc-4.[0-6]}
    47 
    48     # and whitelist GCC compilers that support C++11. wish there were
    49     # a better way.  these will be used in the order provided.
    50 
    51     compiler.whitelist macports-gcc-5 macports-gcc-4.9 macports-gcc-4.8 macports-gcc-4.7
    52 
    53 } else {
    54 
    55     # using libc++;
    56     # Blacklist Clang not supporting C++11 in some form and all GCC.
    57     # Just use the cxx11 PortGroup for this specific case.
    58 
    59     PortGroup cxx11 1.0
    60 
    61 }
    62 
    6335configure.args-append  -DPOSTGRES_PATH=Off
    6436# mute akonadiserver which is usually overly chatty:
    6537configure.cflags-append     -DQT_NO_DEBUG_OUTPUT