aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/passwordsafe/Makefile
blob: c64d2257c15c75a17bfdc8f27040868e12a8adc9 (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
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
71
72
# $FreeBSD$

PORTNAME=   passwordsafe
DISTVERSION=    1.02.1BETA
CATEGORIES= sysutils

MAINTAINER= brnrd@FreeBSD.org
COMMENT=    Popular secure and convenient password manager

LICENSE=    ART20

LIB_DEPENDS=    libuuid.so:misc/e2fsprogs-libuuid \
        libxerces-c.so:textproc/xerces-c3
BUILD_DEPENDS=  zip:archivers/zip

NOT_FOR_ARCHS=      aarch64 armv6
NOT_FOR_ARCHS_REASON=   Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h

CONFLICTS=  pwsafe-[0-9]*

USES=       gmake
USE_GITHUB= yes
USE_WX=     3.0+
USE_XORG=   x11 xtst

OPTIONS_DEFINE= NLS YUBIKEY
YUBIKEY_DESC=   Yubikey support
OPTIONS_SUB=    yes

NLS_USES=       gettext
YUBIKEY_LIB_DEPENDS=    libykpers-1.so:security/ykpers
YUBIKEY_MAKE_ENV_OFF=   NO_YUBI=yes

GH_ACCOUNT= pwsafe
GH_PROJECT= ${GH_ACCOUNT}

WX_COMP=    wx
WANT_WX_VER=    3.0

ALL_TARGET= unicoderelease

post-patch:
.   for f in Makefile.freebsd help/Makefile.freebsd src/os/unix/Makefile \
        src/os/unix/dir.cpp src/ui/wxWidgets/pwsafeapp.cpp \
        src/ui/wxWidgets/Makefile
        ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/$f
.   endfor

post-build:
    ${GMAKE} -C ${WRKSRC}/src/ui/wxWidgets/I18N mos
    ${GMAKE} -C ${WRKSRC}/help all

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/ui/wxWidgets/GCCUnicodeRelease/pwsafe \
        ${STAGEDIR}${PREFIX}/bin
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/help
    ${CP} ${WRKSRC}/help/help*.zip ${STAGEDIR}${DOCSDIR}/help

post-install-NLS-on:
.for    l in da de es fr it ko nl pl ru sv zh
    ${MKDIR} ${STAGEDIR}${PREFIX}/locale/$l/LC_MESSAGES
    ${INSTALL_DATA} ${WRKSRC}/src/ui/wxWidgets/I18N/mos/$l/LC_MESSAGES/pwsafe.mo \
        ${STAGEDIR}${PREFIX}/locale/$l/LC_MESSAGES
.endfor

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1100000
BROKEN= clang segfaults on 10.x
.endif

.include <bsd.port.post.mk>