# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup compiler_blacklist_versions 1.0
subport KeePassXC-devel {}
maintainers {yan12125 @yan12125} openmaintainer
description KeePassXC is a cross-platform community-driven port \
of the Windows application “Keepass Password Safe”.
long_description KeePassXC is a community fork of KeePassX with the \
goal to extend and improve it with new features and \
bugfixes to provide a feature-rich, fully \
cross-platform and modern open-source password manager.
license_noconflict openssl
homepage https://keepassxc.org
qt5.depends_component qtmacextras qtsvg
qt5.depends_build_component \
depends_lib-append port:argon2 \
# KeePassXC now requires a compiler with C++ defect report 253 (DR 253)
# corrected[1]. AppleClang 8.0.0 is known to be broken[2] and
# AppleClang 9.0.0 is known to work[3].
# [1] https://stackoverflow.com/a/47368753/3786245
# [2] https://build.macports.org/builders/ports-10.11_x86_64-builder/builds/77570/steps/install-port/logs/stdio
# [3] https://build.macports.org/builders/ports-10.12_x86_64-builder/builds/82949/steps/install-port/logs/stdio
compiler.blacklist-append {clang < 900} macports-clang-3.4 macports-clang-3.3
# XXX: the following line shouldn't be necessary - revisit when libc++ becomes the default and default compiler configurations are updated
compiler.fallback-append macports-clang-5.0 macports-clang-4.0 macports-clang-3.9
reinplace "s#/usr/local/bin#${prefix}/bin#" \
${worksrcpath}/CMakeLists.txt
configure.pre_args-append \
-DCMAKE_INSTALL_PREFIX=${applications_dir} \
-DCMAKE_INSTALL_MANDIR=${prefix}/share/man \
-DWITH_XC_KEESHARE_SECURE=ON \
-DWITH_XC_NETWORKING=ON \