diff options
author | Wen Heping <wen@FreeBSD.org> | 2010-11-10 08:02:44 +0000 |
---|---|---|
committer | Wen Heping <wen@FreeBSD.org> | 2010-11-10 08:02:44 +0000 |
commit | 3489871e874ba9d822135c0512d4db8cb7c289a9 (patch) | |
tree | 1341d68fb382ae38e1ee23d6c260e5f4aa3ad463 /graphics/mapserver | |
parent | 9d66e79f7c66f1add92fdfb9697712e351a458eb (diff) | |
download | ports-3489871e874ba9d822135c0512d4db8cb7c289a9.tar.gz ports-3489871e874ba9d822135c0512d4db8cb7c289a9.zip |
Notes
Diffstat (limited to 'graphics/mapserver')
-rw-r--r-- | graphics/mapserver/Makefile | 19 | ||||
-rw-r--r-- | graphics/mapserver/pkg-plist | 4 |
2 files changed, 22 insertions, 1 deletions
diff --git a/graphics/mapserver/Makefile b/graphics/mapserver/Makefile index 4726e504f97b..d64ad54ecdec 100644 --- a/graphics/mapserver/Makefile +++ b/graphics/mapserver/Makefile @@ -7,7 +7,7 @@ PORTNAME= mapserver PORTVERSION= 5.6.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics www geography MASTER_SITES= http://download.osgeo.org/mapserver/ @@ -33,6 +33,7 @@ OPTIONS= AGG "Support for AGG image rendering (req: FreeType)" off \ POSTGIS "Support for PostGIS" off \ PHP "Support for MapScript/PHP" off \ PERL "Support for MapScript/PERL" off \ + PYTHON "Support for MapScript/PYTHON" off \ WMS "Support for web map service server and client" off \ WFS "Support for web feature service (req: GDAL)" off \ MAPSERV "Install mapserv cgi interface" on \ @@ -112,6 +113,16 @@ PLIST_SUB+= WITH_PERL="" PLIST_SUB+= WITH_PERL="@comment " .endif +.if defined(WITH_PYTHON) +BUILD_DEPENDS+= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python26 +PLIST_SUB+= WITH_PYTHON="" +.include <../../Mk/bsd.python.mk> +MAP_EGG= MapScript-${PORTVERSION}-${PYTHON_VERSION:S/thon//} +PLIST_SUB+= MAP_EGG=${MAP_EGG} +.else +PLIST_SUB+= WITH_PYTHON="@comment" +.endif + .if defined(WITH_CURL) LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl CONFIGURE_ARGS+= --with-curl=${LOCALBASE} @@ -149,14 +160,20 @@ do-install: ${MKDIR} ${LOCALBASE}/www/cgi-bin/ ${INSTALL_PROGRAM} ${WRKSRC}/mapserv ${LOCALBASE}/www/cgi-bin/mapserv .endif + .if defined(WITH_PHP) @${MKDIR} ${LOCALBASE}/${PHP_EXTENSION_DIR} ${INSTALL_PROGRAM} ${WRKSRC}/mapscript/php3/php_mapscript.so ${LOCALBASE}/${PHP_EXTENSION_DIR}/ .endif + .if defined(WITH_PERL) (cd ${WRKSRC}/mapscript/perl && make install) .endif +.if defined(WITH_PYTHON) + (cd ${WRKSRC}/mapscript/python && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install) +.endif + post-install: .if defined(WITH_PHP) @${ECHO_MSG} "Please add the line extension=php_mapscript.so to ${LOCALBASE}/etc/php/extensions.ini" diff --git a/graphics/mapserver/pkg-plist b/graphics/mapserver/pkg-plist index 16c8d62da043..621958b56ac8 100644 --- a/graphics/mapserver/pkg-plist +++ b/graphics/mapserver/pkg-plist @@ -17,3 +17,7 @@ bin/sortshp %%WITH_PHP%%%%PHP_EXTENSION_DIR%%/php_mapscript.so %%WITH_PHP%%@dirrmtry %%PHP_EXTENSION_DIR%% %%WITH_PHP%%@dirrmtry etc/php +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/mapscript.py +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/mapscript.pyc +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/_mapscript.so +%%WITH_PYTHON%%%%PYTHON_SITELIBDIR%%/%%MAP_EGG%%.egg-info |