freebsd-ports/irc/znc/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

82 lines
2.1 KiB
Makefile

PORTNAME= znc
PORTVERSION= 1.8.2
PORTREVISION= 6
CATEGORIES= irc
MASTER_SITES= https://znc.in/releases/ \
https://znc.in/releases/archive/
# Fix build with libressl
PATCH_SITES= https://github.com/znc/znc/commit/
PATCHFILES= dcb5f3df82fcfec48aab356252067dc897fb98cf.patch:-p1
MAINTAINER= dbaio@FreeBSD.org
COMMENT= Advanced IRC bouncer
WWW= https://wiki.znc.in/ZNC
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c++11-lib cpe cmake:run iconv pathfix pkgconfig python:3.5+
USE_RC_SUBR= znc
SUB_FILES= pkg-message
PORTDOCS= README.md
USERS= znc
GROUPS= znc
OPTIONS_DEFINE= CHARSET CYRUS DEBUG DOCS IPV6 NLS OPENSSL PERL PYTHON TCL
OPTIONS_DEFAULT= CHARSET OPENSSL PERL PYTHON
OPTIONS_SUB= yes
CHARSET_DESC= Character encoding support via ICU
CYRUS_DESC= Cyrus SASL module
DEBUG_DESC= Debugging support
PERL_DESC= Perl scripting module
PYTHON_DESC= Python scripting module
TCL_DESC= Tcl scripting module
CHARSET_CMAKE_BOOL= WANT_ICU
CHARSET_LIB_DEPENDS= libicuuc.so:devel/icu
CYRUS_CMAKE_BOOL= WANT_CYRUS
CYRUS_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
DEBUG_VARS= CMAKE_BUILD_TYPE=Debug
IPV6_CMAKE_BOOL= WANT_IPV6
NLS_CMAKE_BOOL= WANT_I18N
NLS_LIB_DEPENDS= libboost_locale.so:devel/boost-libs
NLS_USES= gettext
OPENSSL_CMAKE_BOOL= WANT_OPENSSL
OPENSSL_CMAKE_ON= -DOPENSSL_ROOT_DIR=${OPENSSLBASE}
OPENSSL_USES= ssl
PERL_BUILD_DEPENDS= swig>=3.0.0:devel/swig
PERL_CMAKE_BOOL= WANT_PERL WANT_SWIG
PERL_USE= perl5=build,run
PERL_USES= perl5
PYTHON_CMAKE_BOOL= WANT_PYTHON WANT_SWIG
PYTHON_CMAKE_ON= -DWANT_PYTHON_VERSION:STRING=python-${PYTHON_VER}
PYTHON_BUILD_DEPENDS= swig>=3.0.0:devel/swig
PYTHON_IMPLIES= CHARSET
PYTHON_USE= perl5=build
PYTHON_USES= perl5
TCL_CMAKE_BOOL= WANT_TCL
TCL_USES= tcl
post-patch:
@${REINPLACE_CMD} -e 's|python3|python${PYTHON_VER}|g' \
${WRKSRC}/znc-buildmod.cmake.in
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
post-install-NLS-off:
@${RM} -r ${STAGEDIR}${DATADIR}/translations
post-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}
.include <bsd.port.mk>