aboutsummaryrefslogtreecommitdiff
path: root/security/kdbx-viewer/Makefile
blob: dc7be9cf21dc72fa9f1eb3d8753607085d2fd938 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Ben Woods <woodsb02@FreeBSD.org>
# $FreeBSD$

PORTNAME=	kdbx-viewer
PORTVERSION=	0.0.1
DISTVERSIONPREFIX=v
CATEGORIES=	security

MAINTAINER=	woodsb02@FreeBSD.org
COMMENT=	ncurses GUI and command-line tool for KeePass2 Database files

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libexpat.so:textproc/expat2 \
		libgcrypt.so:security/libgcrypt \
		libstfl.so:devel/stfl

USE_GITHUB=	yes
GH_ACCOUNT=	max-weller

USES=		ncurses
CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
PLIST_FILES=	bin/kdbxviewer
ALL_TARGET=

post-patch:
	${REINPLACE_CMD} -e 's|gcc|${CC} ${CFLAGS} ${LDFLAGS}|' ${WRKSRC}/Makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/kdbxviewer ${STAGEDIR}${PREFIX}/bin/
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kdbxviewer

.include <bsd.port.mk>