freebsd-ports/security/opensc/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= opensc
DISTVERSION= 0.22.0
CATEGORIES= security devel
MAINTAINER= ale@FreeBSD.org
COMMENT= Libraries and utilities to access smart cards
WWW= https://github.com/OpenSC/OpenSC/wiki
LICENSE= LGPL21
USES= autoreconf compiler:c11 cpe gmake libtool pkgconfig ssl
CPE_VENDOR= ${PORTNAME}_project
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND=PCSC OPENCT CTAPI
OPTIONS_DEFINE= SM NOTIFY DOCS MANPAGES
OPTIONS_DEFAULT=PCSC SM NOTIFY MANPAGES
OPTIONS_SUB= yes
PCSC_DESC= Use PC/SC backend
OPENCT_DESC= Use OpenCT backend
CTAPI_DESC= Use CT-API backend
SM_DESC= Enable secure messaging support
NOTIFY_DESC= Enable notification support
USE_GITHUB= yes
GH_ACCOUNT= OpenSC
GH_PROJECT= ${GH_ACCOUNT}
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
CONFIGURE_ENV= \
OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto"
CONFIGURE_ARGS= --with-completiondir=${PREFIX}/etc/bash_completion.d
PORTDOCS= *
MANPAGES_CONFIGURE_ENABLE= man
OPENCT_LIB_DEPENDS= libopenct.so:security/openct
OPENCT_CONFIGURE_ENABLE= openct
PCSC_LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite
PCSC_CONFIGURE_ENABLE= pcsc
CTAPI_CONFIGURE_ENABLE= ctapi
SM_CONFIGURE_ENABLE= sm
NOTIFY_USES= gnome
NOTIFY_USE= GNOME=glib20
NOTIFY_CONFIGURE_ENABLE= notify
DOCS_CONFIGURE_ENABLE= doc
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDOCS} || ${PORT_OPTIONS:MMANPAGES}
BUILD_DEPENDS+= xsltproc:textproc/libxslt \
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl
CONFIGURE_ENV+= XSLTPROC="${LOCALBASE}/bin/xsltproc"
CONFIGURE_ARGS+=--with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook
.else
CONFIGURE_ENV+= XSLTPROC="${FALSE}"
CONFIGURE_ARGS+=--without-xsl-stylesheetsdir
.endif
.include <bsd.port.mk>