[114668] trunk/dports/security/KeePassX/Portfile

eborisch at macports.org eborisch at macports.org
Fri Dec 13 09:25:05 PST 2013


Revision: 114668
          https://trac.macports.org/changeset/114668
Author:   eborisch at macports.org
Date:     2013-12-13 09:25:04 -0800 (Fri, 13 Dec 2013)
Log Message:
-----------
KeePassX: Build w/clang and c++11 on Mavericks

Modified Paths:
--------------
    trunk/dports/security/KeePassX/Portfile

Modified: trunk/dports/security/KeePassX/Portfile
===================================================================
--- trunk/dports/security/KeePassX/Portfile	2013-12-13 17:11:42 UTC (rev 114667)
+++ trunk/dports/security/KeePassX/Portfile	2013-12-13 17:25:04 UTC (rev 114668)
@@ -46,17 +46,32 @@
 post-extract {
     file mkdir ${worksrcpath}
     reinplace "s|zlib.h|${prefix}/include/zlib.h|" ../${distname}/CMakeLists.txt
+    platform darwin {
+        if {${os.major} >= 13} {
+            reinplace "s|-stack-protector-buffer-size=4||g" \
+                      ../${distname}/CMakeLists.txt
+            reinplace "s|-mllvm||g" \
+                      ../${distname}/CMakeLists.txt
+        }
+    }
 }
 
-# Build fails with clang: unsupported -stack-protector-buffer-size=4
-# (even though clang -help lists option)
-compiler.blacklist      clang
-
 configure.cmd           cmake
 configure.pre_args      -DCMAKE_INSTALL_PREFIX=${applications_dir} \
                         -DZLIB_ROOT=${prefix}
 configure.args          ${qt_cmake_defines} ../${distname}
 
+platform darwin {
+    if {${os.major} < 13} {
+        # Build fails with clang: unsupported -stack-protector-buffer-size=4
+        # (even though clang -help lists option)
+        compiler.blacklist          clang
+    } else {
+        revision                    3
+        configure.pre_args-append   -DWITH_CXX11=On
+    }
+}
+
 # Don't make copies of all the QT4 libraries etc... (MUCH smaller install)
 post-configure {
     reinplace "s/FIXUP_QT4_EXECUTABLE.*//" src/cmake_install.cmake
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131213/6677c9b5/attachment.html>


More information about the macports-changes mailing list