Files
ports/graphics/mapcache/Makefile
T
Po-Chuan Hsieh 88b20c8adc graphics/mapcache: Fix build with gdal 3.13.0+
/wrkdirs/usr/ports/graphics/mapcache/work/mapcache-1.14.1/lib/source_gdal.c:350:31: warning: call to undeclared function 'MIN'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  350 |         double dfDesiredRes = MIN( dfDesiredXRes, dfDesiredYRes );
      |                               ^
1 warning generated.
...
: && /usr/local/libexec/ccache/cc -O2 -pipe  -std=c99 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -Wall -Werror=declaration-after-statement -Wno-comment -O2 -pipe  -std=c99 -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing  -DNDEBUG -Xlinker --dependency-file=cgi/CMakeFiles/mapcache.fcgi.dir/link.d cgi/CMakeFiles/mapcache.fcgi.dir/mapcache.c.o -o cgi/mapcache.fcgi  -Wl,-rpath,/wrkdirs/usr/ports/graphics/mapcache/work/.build:/usr/local/lib:  libmapcache.so.1.14.1  /usr/local/lib/libfcgi.so  /usr/local/lib/libpng.so  /usr/lib/libz.so  /usr/local/lib/libjpeg.so  /usr/local/lib/libcurl.so  /usr/local/lib/libapr-1.so  /usr/local/lib/libaprutil-1.so  /usr/local/lib/libpixman-1.so  /usr/local/lib/libgdal.so  /usr/local/lib/libsqlite3.so  -lm && :
ld: error: undefined reference: MIN
>>> referenced by libmapcache.so.1.14.1 (disallowed by --no-allow-shlib-undefined)
cc: error: linker command failed with exit code 1 (use -v to see invocation)

Obtained from:	https://github.com/MapServer/mapcache/commit/0948ea28df9ef5dae8705196b32f0742268953cf
Approved by:	portmgr (blanket)
2026-05-12 17:31:14 +08:00

74 lines
2.0 KiB
Makefile

PORTNAME= mapcache
DISTVERSION= 1.14.1
PORTREVISION= 4
CATEGORIES= graphics
MASTER_SITES= http://download.osgeo.org/mapserver/
PATCH_SITES= https://github.com/MapServer/mapcache/commit/
PATCHFILES= 0948ea28df9ef5dae8705196b32f0742268953cf.patch:-p1
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.md
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
CFLAGS+= -std=c99
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>