freebsd-ports/devel/kore/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

67 lines
1.7 KiB
Makefile

PORTNAME= kore
PORTVERSION= 4.1.0
CATEGORIES= devel www
MASTER_SITES= https://kore.io/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= Web application framework for writing web APIs in C
WWW= http://www.kore.io/
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= compiler:c11 gmake ssl
MAKE_ARGS= OPENSSL_PATH=${OPENSSLBASE}
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
# 12.0 + -pedantic
CFLAGS_clang= -Wno-error=c11-extensions
PORTEXAMPLES= *
OPTIONS_DEFINE= ACME CURL DEBUG EXAMPLES HTTP JSONRPC PGSQL PYTHON \
TASKS TLS
OPTIONS_DEFAULT= ACME CURL HTTP JSONRPC PGSQL PYTHON TASKS TLS
OPTIONS_SUB= yes
ACME_DESC= Build with ACME support
HTTP_DESC= Build with HTTP support
JSONRPC_DESC= Build with JSON-RPC support
TASKS_DESC= Build with tasks support
ACME_MAKE_ARGS= ACME=1
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
CURL_MAKE_ARGS= CURL=1
DEBUG_MAKE_ARGS= DEBUG=1
HTTP_MAKE_ARGS_OFF= NOHTTP=1
JSONRPC_IMPLIES= HTTP
JSONRPC_LIB_DEPENDS= libyajl.so:devel/yajl
JSONRPC_MAKE_ARGS= JSONRPC=1
PGSQL_IMPLIES= HTTP
PGSQL_USES= pgsql
PGSQL_MAKE_ARGS= PGSQL=1
PYTHON_USES= gettext-runtime python:3.6+
PYTHON_MAKE_ARGS= PYTHON=1
PYTHON_BINARY_ALIAS= python3-config=${PYTHON_CMD}-config
TASKS_MAKE_ARGS= TASKS=1
TLS_MAKE_ARGS_OFF= NOTLS=1
.include <bsd.port.options.mk>
post-patch:
.if ${LOCALBASE} != /usr/local
@${REINPLACE_CMD} 's|/usr/local/|${LOCALBASE}/|g' \
${WRKSRC}/Makefile
.endif
@${REINPLACE_CMD} 's|%%OPENSSLINC%%|${OPENSSLINC}|g' \
${WRKSRC}/src/cli.c
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/kodev \
${STAGEDIR}${PREFIX}/bin/kore
post-install-EXAMPLES-on:
@cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
@cd ${WRKSRC}/conf && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>