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

74 lines
2 KiB
Makefile

PORTNAME= poco
DISTVERSION= 1.10.1
DISTVERSIONSUFFIX= -all
CATEGORIES= devel net
MASTER_SITES= https://pocoproject.org/releases/${PORTNAME}-${PORTVERSION}/
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= C++ libraries with a network/internet focus
WWW= https://pocoproject.org/
LICENSE= BSL
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpcre.so:devel/pcre \
libexpat.so:textproc/expat2
USES= cmake compiler:c++14-lang cpe localbase pkgconfig tar:bz2
USE_LDCONFIG= yes
CONFLICTS= poco-ssl
CPE_VENDOR= pocoproject
CMAKE_ARGS= -DPOCO_UNBUNDLED:BOOL=ON
SHLIB_MAJOR= 71
PLIST_SUB= SHLIB_MAJOR=${SHLIB_MAJOR}
OPTIONS_DEFINE= MYSQL REDIS SQLITE SSL TEST
OPTIONS_RADIO= ODBC
OPTIONS_RADIO_ODBC= IODBC UNIXODBC
OPTIONS_DEFAULT= MYSQL REDIS SQLITE SSL
OPTIONS_SUB= yes
MYSQL_USES= mysql
MYSQL_CMAKE_OFF= -DENABLE_DATA_MYSQL:BOOL=OFF
IODBC_LIB_DEPENDS= libiodbc.so:databases/libiodbc
IODBC_CMAKE_ON= -DODBC_INCLUDE_DIRECTORIES:PATH=${LOCALBASE}/include/libiodbc \
-DODBC_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libiodbc.so
SQLITE_USES= sqlite
SQLITE_CMAKE_OFF= -DENABLE_DATA_SQLITE:BOOL=OFF
SSL_USES= ssl
SSL_CMAKE_OFF= -DENABLE_CRYPTO:BOOL=OFF \
-DENABLE_NETSSL:BOOL=OFF
UNIXODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC
UNIXODBC_CMAKE_ON= -DODBC_INCLUDE_DIRECTORIES:PATH=${LOCALBASE}/include \
-DODBC_LIBRARIES:FILEPATH=${LOCALBASE}/lib/libodbc.so
TEST_CMAKE_ON= -DENABLE_TESTS:BOOL=ON
TEST_IMPLIES= SQLITE SSL
TEST_TEST_TARGET= test
REDIS_CMAKE_OFF= -DENABLE_REDIS:BOOL=OFF
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL} || ${PORT_OPTIONS:MSQLITE} || ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MUNIXODBC}
PLIST_SUB+= DATA=""
.else
PLIST_SUB+= DATA="@comment "
.endif
.if ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MUNIXODBC}
PLIST_SUB+= ODBC=""
.else
CMAKE_ARGS+= -DENABLE_DATA_ODBC:BOOL=OFF
PLIST_SUB+= ODBC="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-D_XOPEN_SOURCE=500 || ; \
s|_EPOLL|_POLL| ; \
s|CMAKE_DEBUG_POSTFIX "d"|CMAKE_DEBUG_POSTFIX ""| ; \
s|dl rt|rt|' ${WRKSRC}/cmake/DefinePlatformSpecifc.cmake
.include <bsd.port.mk>