mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Use OPTIONS
- Fix dependencies PR: ports/67817 Submitted by: Douglas K. Rand <rand@meridian-enviro.com> (maintainer)
This commit is contained in:
parent
5125ba1754
commit
2dbf892c19
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111343
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
PORTNAME= mapserver
|
PORTNAME= mapserver
|
||||||
PORTVERSION= 4.0.2
|
PORTVERSION= 4.0.2
|
||||||
PORTREVISION?= 1
|
PORTREVISION?= 2
|
||||||
CATEGORIES= graphics www misc
|
CATEGORIES= graphics www misc
|
||||||
MASTER_SITES= http://cvs.gis.umn.edu/dist/
|
MASTER_SITES= http://cvs.gis.umn.edu/dist/
|
||||||
|
|
||||||
@ -22,9 +22,23 @@ CONFIGURE_ARGS= --enable-runpath \
|
|||||||
--with-gd=${LOCALBASE} \
|
--with-gd=${LOCALBASE} \
|
||||||
--with-proj=${LOCALBASE}
|
--with-proj=${LOCALBASE}
|
||||||
|
|
||||||
|
OPTIONS= TIFF "Support for TIFF (but not GeoTIFF) files" off \
|
||||||
|
MING "Support for Macromedia Flash output" off \
|
||||||
|
PDF "Support for PDF output via pdflib" off \
|
||||||
|
GDAL "Support for a number of input raster formats" off \
|
||||||
|
POSTGRESQL "Support for PostgreSQL" off \
|
||||||
|
PHP "Support for MapScript/PHP" off \
|
||||||
|
WMS "Support for web map service server and client" off \
|
||||||
|
WFS "Support for web feature service" off \
|
||||||
|
DEBUG "Enable debugging output" off
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if defined(WITH_TIFF)
|
.if defined(WITH_TIFF)
|
||||||
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
|
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
|
||||||
CONFIGURE_ARGS+= --with-tiff=${LOCALBASE}
|
CONFIGURE_ARGS+= --with-tiff=${LOCALBASE}
|
||||||
|
.else
|
||||||
|
CONFIGURE_ARGS+= --without-tiff
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_MING)
|
.if defined(WITH_MING)
|
||||||
@ -33,18 +47,25 @@ CONFIGURE_ARGS+= --with-ming=${LOCALBASE}
|
|||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_PDF)
|
.if defined(WITH_PDF)
|
||||||
LIB_DEPENDS+= pdf.6:${PORTSDIR}/graphics/pdflib
|
LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib
|
||||||
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
|
CONFIGURE_ARGS+= --with-pdf=${LOCALBASE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_WMS)
|
.if defined(WITH_WMS)
|
||||||
LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl
|
WITH_CURL= YES
|
||||||
CONFIGURE_ARGS+= --wmsclient
|
CONFIGURE_ARGS+= --with-wms --with-wmsclient
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_WFS)
|
||||||
|
WITH_CURL= YES
|
||||||
|
WITH_GDAL= YES
|
||||||
|
CONFIGURE_ARGS+= --with-wfs --with-wfsclient
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_GDAL)
|
.if defined(WITH_GDAL)
|
||||||
LIB_DEPENDS+= gdal.1.1:${PORTSDIR}/graphics/gdal
|
BUILD_DEPENDS+= gdal-config:${PORTSDIR}/graphics/gdal
|
||||||
CONFIGURE_ARGS+= --with-gdal=${LOCALBASE}
|
CONFIGURE_ARGS+= --with-gdal=${LOCALBASE}/bin/gdal-config \
|
||||||
|
--with-ogr=${LOCALBASE}/bin/gdal-config
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_POSTGRESQL)
|
.if defined(WITH_POSTGRESQL)
|
||||||
@ -58,6 +79,11 @@ BUILD_DEPENDS+= mod_php4:${PORTSDIR}/www/mod_php4:
|
|||||||
CONFIGURE_ARGS+= --with-php=${LOCALBASE}
|
CONFIGURE_ARGS+= --with-php=${LOCALBASE}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
.if defined(WITH_CURL)
|
||||||
|
LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl
|
||||||
|
CONFIGURE_ARGS+= --with-curl=${LOCALBASE}
|
||||||
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_DEBUG)
|
.if defined(WITH_DEBUG)
|
||||||
CONFIGURE_ARGS+= --enable-debug
|
CONFIGURE_ARGS+= --enable-debug
|
||||||
.endif
|
.endif
|
||||||
@ -70,4 +96,4 @@ do-install:
|
|||||||
.endfor
|
.endfor
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/shp2mysql.pl ${LOCALBASE}/bin/shp2mysql
|
${INSTALL_SCRIPT} ${WRKSRC}/shp2mysql.pl ${LOCALBASE}/bin/shp2mysql
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
11
graphics/mapserver/files/patch-configure
Normal file
11
graphics/mapserver/files/patch-configure
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- configure.orig Mon Jun 7 16:05:35 2004
|
||||||
|
+++ configure Mon Jun 7 16:05:50 2004
|
||||||
|
@@ -8346,7 +8346,7 @@
|
||||||
|
echo "$as_me:$LINENO: result: yes, user supplied MING directory" >&5
|
||||||
|
echo "${ECHO_T}yes, user supplied MING directory" >&6
|
||||||
|
MING_ENABLED=-DUSE_MING_FLASH
|
||||||
|
- MING_LIB=-L$with_ming -lming
|
||||||
|
+ MING_LIB="-L$with_ming -lming"
|
||||||
|
MING_INC=-I$with_ming
|
||||||
|
fi
|
||||||
|
|
11
graphics/mapserver/files/patch-map.h
Normal file
11
graphics/mapserver/files/patch-map.h
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- map.h.orig Mon Jun 7 16:12:02 2004
|
||||||
|
+++ map.h Mon Jun 7 16:11:50 2004
|
||||||
|
@@ -39,7 +39,7 @@
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_MING_FLASH
|
||||||
|
-#include "ming.h"
|
||||||
|
+#include "ming/ming.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <sys/types.h> /* regular expression support */
|
Loading…
Reference in New Issue
Block a user