diff options
author | pav <pav@FreeBSD.org> | 2004-06-12 23:09:21 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-06-12 23:09:21 +0800 |
commit | f8be820f0cbc98615b8610629541694c2c12e3a2 (patch) | |
tree | 9adfc28776da35d7e448a09968f028ab734f647f /graphics/mapserver | |
parent | 97ede80f852d03fd0233c261721b0061b555f145 (diff) | |
download | freebsd-ports-gnome-f8be820f0cbc98615b8610629541694c2c12e3a2.tar.gz freebsd-ports-gnome-f8be820f0cbc98615b8610629541694c2c12e3a2.tar.zst freebsd-ports-gnome-f8be820f0cbc98615b8610629541694c2c12e3a2.zip |
- Use OPTIONS
- Fix dependencies
PR: ports/67817
Submitted by: Douglas K. Rand <rand@meridian-enviro.com> (maintainer)
Diffstat (limited to 'graphics/mapserver')
-rw-r--r-- | graphics/mapserver/Makefile | 40 | ||||
-rw-r--r-- | graphics/mapserver/files/patch-configure | 11 | ||||
-rw-r--r-- | graphics/mapserver/files/patch-map.h | 11 |
3 files changed, 55 insertions, 7 deletions
diff --git a/graphics/mapserver/Makefile b/graphics/mapserver/Makefile index 28fb876e6651..a311c80a727f 100644 --- a/graphics/mapserver/Makefile +++ b/graphics/mapserver/Makefile @@ -7,7 +7,7 @@ PORTNAME= mapserver PORTVERSION= 4.0.2 -PORTREVISION?= 1 +PORTREVISION?= 2 CATEGORIES= graphics www misc MASTER_SITES= http://cvs.gis.umn.edu/dist/ @@ -22,9 +22,23 @@ CONFIGURE_ARGS= --enable-runpath \ --with-gd=${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) LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff CONFIGURE_ARGS+= --with-tiff=${LOCALBASE} +.else +CONFIGURE_ARGS+= --without-tiff .endif .if defined(WITH_MING) @@ -33,18 +47,25 @@ CONFIGURE_ARGS+= --with-ming=${LOCALBASE} .endif .if defined(WITH_PDF) -LIB_DEPENDS+= pdf.6:${PORTSDIR}/graphics/pdflib +LIB_DEPENDS+= pdf.6:${PORTSDIR}/print/pdflib CONFIGURE_ARGS+= --with-pdf=${LOCALBASE} .endif .if defined(WITH_WMS) -LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl -CONFIGURE_ARGS+= --wmsclient +WITH_CURL= YES +CONFIGURE_ARGS+= --with-wms --with-wmsclient +.endif + +.if defined(WITH_WFS) +WITH_CURL= YES +WITH_GDAL= YES +CONFIGURE_ARGS+= --with-wfs --with-wfsclient .endif .if defined(WITH_GDAL) -LIB_DEPENDS+= gdal.1.1:${PORTSDIR}/graphics/gdal -CONFIGURE_ARGS+= --with-gdal=${LOCALBASE} +BUILD_DEPENDS+= gdal-config:${PORTSDIR}/graphics/gdal +CONFIGURE_ARGS+= --with-gdal=${LOCALBASE}/bin/gdal-config \ + --with-ogr=${LOCALBASE}/bin/gdal-config .endif .if defined(WITH_POSTGRESQL) @@ -58,6 +79,11 @@ BUILD_DEPENDS+= mod_php4:${PORTSDIR}/www/mod_php4: CONFIGURE_ARGS+= --with-php=${LOCALBASE} .endif +.if defined(WITH_CURL) +LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl +CONFIGURE_ARGS+= --with-curl=${LOCALBASE} +.endif + .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug .endif @@ -70,4 +96,4 @@ do-install: .endfor ${INSTALL_SCRIPT} ${WRKSRC}/shp2mysql.pl ${LOCALBASE}/bin/shp2mysql -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/mapserver/files/patch-configure b/graphics/mapserver/files/patch-configure new file mode 100644 index 000000000000..0ba3b15d3add --- /dev/null +++ b/graphics/mapserver/files/patch-configure @@ -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 + diff --git a/graphics/mapserver/files/patch-map.h b/graphics/mapserver/files/patch-map.h new file mode 100644 index 000000000000..7164617819eb --- /dev/null +++ b/graphics/mapserver/files/patch-map.h @@ -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 */ |