6e45c6e366
Don't return invalid when EXCEPTION param is not passed in WMS 1.3.0.
113 lines
3.2 KiB
Makefile
113 lines
3.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.9 2011/01/11 09:47:55 landry Exp $
|
|
|
|
MULTI_PACKAGES= -utils -main -php -perl
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT-main= GIS CGI server
|
|
COMMENT-utils= mapserver utilities
|
|
COMMENT-php= PHP Mapscript extension
|
|
COMMENT-perl= Perl Mapscript binding
|
|
|
|
V = 5.6.5
|
|
DISTNAME= mapserver-${V}
|
|
PKGNAME-main= ${DISTNAME}
|
|
PKGNAME-utils= mapserver-utils-${V}
|
|
PKGNAME-php= php5-mapscript-${V}
|
|
PKGNAME-perl= p5-mapscript-${V}
|
|
REVISION-main= 1
|
|
REVISION-utils= 0
|
|
|
|
CATEGORIES= geo www
|
|
|
|
HOMEPAGE= http://www.mapserver.org/
|
|
# MIT
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MAINTAINER= Landry Breuil <landry@openbsd.org>
|
|
|
|
MASTER_SITES= http://download.osgeo.org/mapserver/
|
|
|
|
BUILD_DEPENDS= www/php5/core \
|
|
graphics/agg
|
|
|
|
LIB_DEPENDS= devel/proj \
|
|
geo/gdal \
|
|
geo/geos \
|
|
devel/geotiff \
|
|
graphics/gd
|
|
|
|
RUN_DEPENDS-php= www/php5/core
|
|
|
|
WANTLIB= crypto curl expat freetype gif iconv idn jasper jpeg \
|
|
com_err readline termcap m png pq ssl tiff xml2 z \
|
|
proj gdal geos_c geotiff gd
|
|
|
|
WANTLIB-main= ${WANTLIB} pthread c stdc++
|
|
WANTLIB-utils= ${WANTLIB} pthread c stdc++
|
|
WANTLIB-php= ${WANTLIB} stdc++
|
|
WANTLIB-perl= ${WANTLIB} stdc++
|
|
|
|
USE_GMAKE= yes
|
|
CONFIGURE_STYLE=gnu
|
|
CONFIGURE_ARGS= --with-proj=${LOCALBASE} \
|
|
--with-png=${LOCALBASE} \
|
|
--with-agg=${LOCALBASE} \
|
|
--without-pdf \
|
|
--with-tiff=${LOCALBASE} \
|
|
--with-freetype=${X11BASE}/bin \
|
|
--with-gdal=${LOCALBASE}/bin/gdal-config \
|
|
--with-php=${LOCALBASE}/share/php5/include \
|
|
--with-postgis=${LOCALBASE}/bin/pg_config \
|
|
--with-geos=${LOCALBASE}/bin/geos-config \
|
|
--with-ogr=${LOCALBASE}/bin/gdal-config \
|
|
--with-xml2-config=${LOCALBASE}/bin/xml2-config \
|
|
--with-curl-config=${LOCALBASE}/bin/curl-config \
|
|
--with-wmsclient \
|
|
--with-wfsclient \
|
|
--with-wcs \
|
|
--with-wfs \
|
|
--with-sos
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -pthread"
|
|
|
|
MAKE_ENV= CFLAGS+=-fPIC
|
|
|
|
UTILS= shp2img shp2pdf legend shptree shptreevis shptreetst scalebar \
|
|
sortshp tile4ms msencrypt
|
|
|
|
PREFIX-main= /var/www
|
|
PREFIX-php= /var/www
|
|
|
|
SUBST_VARS+= PREFIX-php PREFIX-main
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/mapscript/perl && perl Makefile.PL && ${MAKE}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${WRKINST}/${PREFIX-main}/cgi-bin
|
|
${INSTALL_DATA_DIR} ${WRKINST}/${PREFIX-php}/lib/php/modules
|
|
${INSTALL_DATA_DIR} ${DESTDIR}/${PREFIX-php}/conf/php5.sample
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mapserver/php
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mapserver/perl
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/mapserv ${WRKINST}/${PREFIX-main}/cgi-bin
|
|
${INSTALL_DATA} ${WRKSRC}/mapscript/php3/php_mapscript.so \
|
|
${WRKINST}/${PREFIX-php}/lib/php/modules/mapscript.so
|
|
echo "; Enable Mapscript extension module\nextension=mapscript.so" \
|
|
> ${WRKINST}/${PREFIX-php}/conf/php5.sample/mapscript.ini
|
|
.for i in ${UTILS}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${i} ${PREFIX}/bin/
|
|
.endfor
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mapserver-config ${PREFIX}/bin/
|
|
${INSTALL_DATA} ${WRKSRC}/mapscript/php3/examples/* \
|
|
${PREFIX}/share/examples/mapserver/php
|
|
${INSTALL_DATA} ${WRKSRC}/mapscript/perl/examples/* \
|
|
${PREFIX}/share/examples/mapserver/perl
|
|
cd ${WRKSRC}/mapscript/perl && ${MAKE} install
|
|
|
|
.include <bsd.port.mk>
|