Ignore:
Timestamp:
Dec 13, 2013, 5:25:04 PM (6 years ago)
Author:
eborisch@…
Message:

KeePassX: Build w/clang and c++11 on Mavericks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/KeePassX/Portfile

    r107749 r114668  
    4747    file mkdir ${worksrcpath}
    4848    reinplace "s|zlib.h|${prefix}/include/zlib.h|" ../${distname}/CMakeLists.txt
     49    platform darwin {
     50        if {${os.major} >= 13} {
     51            reinplace "s|-stack-protector-buffer-size=4||g" \
     52                      ../${distname}/CMakeLists.txt
     53            reinplace "s|-mllvm||g" \
     54                      ../${distname}/CMakeLists.txt
     55        }
     56    }
    4957}
    50 
    51 # Build fails with clang: unsupported -stack-protector-buffer-size=4
    52 # (even though clang -help lists option)
    53 compiler.blacklist      clang
    5458
    5559configure.cmd           cmake
     
    5761                        -DZLIB_ROOT=${prefix}
    5862configure.args          ${qt_cmake_defines} ../${distname}
     63
     64platform darwin {
     65    if {${os.major} < 13} {
     66        # Build fails with clang: unsupported -stack-protector-buffer-size=4
     67        # (even though clang -help lists option)
     68        compiler.blacklist          clang
     69    } else {
     70        revision                    3
     71        configure.pre_args-append   -DWITH_CXX11=On
     72    }
     73}
    5974
    6075# Don't make copies of all the QT4 libraries etc... (MUCH smaller install)
Note: See TracChangeset for help on using the changeset viewer.