blob: c763ce23400208d5a2f2b1022d740277a1475a5d (
plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Created by: Ben Woods <woodsb02@FreeBSD.org>
PORTNAME= keepass
PORTVERSION= 2.46
CATEGORIES= security
MASTER_SITES= SF/${PORTNAME}/KeePass%202.x/${PORTVERSION}
DISTNAME= KeePass-${PORTVERSION}-Source
MAINTAINER= m.muenz@gmail.com
COMMENT= Light-weight and easy-to-use password manager
LICENSE= GPLv2+
BUILD_DEPENDS= icotool:graphics/icoutils
LIB_DEPENDS= libgcrypt.so:security/libgcrypt \
libgdiplus.so:x11-toolkits/libgdiplus
USES= cpe dos2unix gnome mono zip
DOS2UNIX_GLOB= *.csproj *.sln
EXTRACT_AFTER_ARGS= -d ${WRKDIR}/${DISTNAME}
INSTALLS_ICONS= yes
NO_ARCH= yes
SUB_FILES= ${PORTNAME}.sh
DESKTOP_ENTRIES= "KeePass" \
"${COMMENT}" \
"${PORTNAME}" \
"keepass.sh" \
"Utility;" \
true
OPTIONS_DEFINE= DEBUG XDOTOOL XSEL
OPTIONS_DEFAULT= XDOTOOL XSEL
XDOTOOL_DESC= Use the xdotool utility for auto-typing passwords
XSEL_DESC= Use the xsel utility for clipboard copying
DEBUG_VARS= config=Debug
DEBUG_VARS_OFF= config=Release
XDOTOOL_RUN_DEPENDS= xdotool:x11/xdotool
XSEL_RUN_DEPENDS= xsel:x11/xsel-conrad
MAKE_ENV= MONO_REGISTRY_PATH=${WRKDIR}
post-patch:
${REINPLACE_CMD} -e 's|sed\ -i|sed\ -i\ \"\"|g' ${WRKSRC}/Build/PrepMonoDev.sh
do-build:
# Extract icons
(cd ${WRKSRC} && ${LOCALBASE}/bin/icotool -x KeePass/KeePass.ico)
# Prepare build
(cd ${WRKSRC}/Build && ${SH} PrepMonoDev.sh)
# Do build
(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${LOCALBASE}/bin/xbuild /t:KeePass /p:Configuration=${CONFIG})
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/Build/KeePass/${CONFIG}/KeePass.exe ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/Ext/KeePass.config.xml ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/Ext/KeePass.exe.config ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC}/Ext && ${COPYTREE_SHARE} XSL ${STAGEDIR}${DATADIR})
.for size in 16 32 48 256
@${MKDIR} ${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}x${size}/apps
${INSTALL_DATA} ${WRKSRC}/KeePass_*_${size}x${size}x32.png \
${STAGEDIR}${LOCALBASE}/share/icons/hicolor/${size}x${size}/apps/keepass.png
.endfor
.include <bsd.port.mk>
|