# $FreeBSD: tags/RELEASE_11_1_0/security/keepassxc/Makefile 440478 2017-05-09 09:26:04Z tobik $

PORTNAME=	keepassxc
PORTVERSION=	2.1.4
CATEGORIES=	security

MAINTAINER=	melanhit@gmail.com
COMMENT=	KeePass Cross-platform Community Edition

LICENSE=	BOOST-1.0 BSD3CLAUSE CC0-1.0 GPLv2 GPLv3 LGPL21 LGPL3 NOKIA-LGPL-EXCEPTION
LICENSE_COMB=	multi
LICENSE_NAME_BOOST-1.0=	Boost Software License version 1.0
LICENSE_NAME_NOKIA-LGPL-EXCEPTION=	Nokia Qt LGPL Exception version 1.1
LICENSE_FILE_BOOST-1.0=	${WRKSRC}/LICENSE.BOOST-1.0
LICENSE_FILE_NOKIA-LGPL-EXCEPTION=	${WRKSRC}/LICENSE.NOKIA-LGPL-EXCEPTION
LICENSE_PERMS_BOOST-1.0=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_PERMS_NOKIA-LGPL-EXCEPTION=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

LIB_DEPENDS=	libgcrypt.so:security/libgcrypt \
		libgpg-error.so:security/libgpg-error

CONFLICTS_INSTALL=	keepassx-0.* keepassx2-* keepassx-*

USES=		cmake:outsource compiler:c++11-lib desktop-file-utils shared-mime-info
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
USE_QT5=	buildtools_build concurrent core dbus gui linguisttools network \
		qmake_build testlib widgets
USE_XORG=	ice inputproto sm x11 xcursor xext xfixes xrandr xrender xt

USE_GITHUB=	yes
GH_ACCOUNT=	keepassxreboot

CMAKE_ARGS+=	-DZLIB_SUPPORTS_GZIP:BOOL=ON

OPTIONS_DEFINE=		AUTOTYPE HTTP TEST
OPTIONS_DEFAULT=	AUTOTYPE HTTP
OPTIONS_SUB=		yes

AUTOTYPE_CMAKE_BOOL=	WITH_XC_AUTOTYPE
AUTOTYPE_DESC=		Auto-type passwords in input fields
AUTOTYPE_USE=		QT5=x11extras XORG=xi,xtst

HTTP_CMAKE_BOOL=	WITH_XC_HTTP
HTTP_DESC=		KeePassHTTP support for ChromeIPass and PassIFox

TEST_CMAKE_BOOL=	WITH_TESTS WITH_GUI_TESTS
TEST_TEST_TARGET=	test

.include <bsd.port.mk>
