freebsd-ports/sysutils/passwordsafe/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

71 lines
1.7 KiB
Makefile

PORTNAME= passwordsafe
DISTVERSION= 1.12.0
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= brnrd@FreeBSD.org
COMMENT= Popular secure and convenient password manager
WWW= https://pwsafe.org
LICENSE= ART20
NOT_FOR_ARCHS= aarch64 armv6 armv7
NOT_FOR_ARCHS_REASON= Cannot determine whether the target CPU is big or little endian - please fix PwsPlatform.h
LIB_DEPENDS= libcurl.so:ftp/curl \
libuuid.so:misc/e2fsprogs-libuuid \
libxerces-c.so:textproc/xerces-c3 \
libqrencode.so:graphics/libqrencode
BUILD_DEPENDS= zip:archivers/zip
CONFLICTS= pwsafe
USES= compiler:c++11-lang gmake pkgconfig xorg
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
MAKE_ENV= NO_QR=yes
GH_ACCOUNT= pwsafe
GH_PROJECT= ${GH_ACCOUNT}
WX_COMPS= wx
WANT_WX_VER= 3.0
LDFLAGS= -L${PREFIX}/lib -lqrencode
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/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.mk>