summaryrefslogtreecommitdiff
path: root/security/keepass-plugin-keepassrpc/Makefile
blob: e322bb71380c34e236370333e3f68a9b2fbdab06 (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
36
37
38
39
40
41
PORTNAME=	keepassrpc
PORTVERSION=	2.0.2
DISTVERSIONPREFIX=v
CATEGORIES=	security
PKGNAMEPREFIX=	keepass-plugin-

MAINTAINER=	tiga@FreeBSD.org
COMMENT=	KeePass plugin which facilitates the Kee Firefox plugin
WWW=		https://www.kee.pm/

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	keepass>0:security/keepass \
		msbuild:devel/msbuild
LIB_DEPENDS=	libgdiplus.so:x11-toolkits/libgdiplus

USES=		cpe mono
CPE_VENDOR=	kee
USE_GITHUB=	yes
GH_ACCOUNT=	kee-org

DATADIR=	${PREFIX}/share/keepass/Plugins
NO_ARCH=	yes

OPTIONS_DEFINE=	DEBUG
DEBUG_VARS=	config=Debug
DEBUG_VARS_OFF=	config=Release

do-build:
	(cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/msbuild /t:KeePassRPC /p:Configuration=${CONFIG})

do-install:
	@${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${WRKSRC}/KeePassRPC/bin/${CONFIG} && \
		${RM} ./KeePass.exe && \
		${RM} ./KeePass.exe.config && \
		${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})

.include <bsd.port.mk>