freebsd-ports/graphics/mapcache/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

68 lines
1.9 KiB
Makefile

PORTNAME= mapcache
DISTVERSION= 1.12.1
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= http://download.osgeo.org/mapserver/
MAINTAINER= wen@FreeBSD.org
COMMENT= Server that implements tile caching to speed up access to WMS layers
WWW= https://www.mapserver.org/mapcache/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libpng.so:graphics/png \
libapr-1.so:devel/apr1 \
libaprutil-1.so:devel/apr1 \
libpixman-1.so:x11/pixman
USES= cmake jpeg localbase
USE_LDCONFIG= yes
CMAKE_ON= WITH_OGR WITH_PIXMAN
CMAKE_OFF= WITH_BERKELEY_DB
OPTIONS_DEFINE= APACHE FASTCGI SQLITE MEMCACHE TIFF TIFF_WRITE \
GEOTIFF PCRE GDAL GEOS
OPTIONS_DEFAULT= APACHE FASTCGI SQLITE GEOS GDAL
OPTIONS_SUB= yes
APACHE_DESC= Native apache module
APACHE_USES= apache
APACHE_CMAKE_BOOL= WITH_APACHE
APACHE_CMAKE_ON= -DAPACHE_INCLUDE_DIR=${LOCALBASE}/${APACHEINCLUDEDIR} \
-DAPACHE_MODULE_DIR=${LOCALBASE}/${APACHEMODDIR}
FASTCGI_LIB_DEPENDS= libfcgi.so:www/fcgi
FASTCGI_CMAKE_BOOL= WITH_FCGI
SQLITE_DESC= Use sqlite as a cache backend
SQLITE_USES= sqlite
SQLITE_CMAKE_BOOL= WITH_SQLITE
MEMCACHE_DESC= Use memcache as a cache backend
MEMCACHE_CMAKE_BOOL= WITH_MEMCACHE
TIFF_DESC= Use TIFFs as a cache backend
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_CMAKE_BOOL= WITH_TIFF
TIFF_WRITE_DESC= Support for writable TIFF cache backends (implies TIFF)
TIFF_WRITE_LIB_DEPENDS= libtiff.so:graphics/tiff
TIFF_WRITE_CMAKE_BOOL= WITH_TIFF_WRITE_SUPPORT
TIFF_WRITE_IMPLIES= TIFF
GEOTIFF_DESC= GeoTIFF metadata creation for TIFF cache backends
GEOTIFF_LIB_DEPENDS= libgeotiff.so:graphics/libgeotiff
GEOTIFF_CMAKE_BOOL= WITH_GEOTIFF
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
PCRE_CMAKE_BOOL= WITH_PCRE
GDAL_DESC= GDAL library support
GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal
GDAL_CMAKE_BOOL= WITH_GDAL WITH_OGR
GEOS_LIB_DEPENDS= libgeos_c.so:graphics/geos
GEOS_CMAKE_BOOL= WITH_GEOS
.include <bsd.port.mk>