PORTNAME=	libkpass
PORTVERSION=	6
PORTREVISION=	2
CATEGORIES=	security

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Library for a reading/writing KeePass 1.x DB
WWW=		https://github.com/bldewolf/libkpass

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libnettle.so:security/nettle

USE_GITHUB=	yes
GH_ACCOUNT=	bldewolf

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
USES=		gettext gmake libtool
USE_LDCONFIG=	yes
CPPFLAGS+=	-Dbswap_32=bswap32 -Dbswap_16=bswap16 \
		-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib -lintl

PLIST_FILES=	include/kpass.h \
		lib/libkpass.a \
		lib/libkpass.so \
		lib/libkpass.so.1 \
		lib/libkpass.so.1.0.0

.include <bsd.port.mk>
