# $Id: Portfile 96056 2012-07-30 13:47:44Z and.damore@macports.org $ PortSystem 1.0 name mapserver version 6.0.3 maintainers and.damore hbaspecto.com:jea openmaintainer categories gis license permissive platforms darwin description mapserver long_description MapServer is an Open Source development environment for \ building spatially-enabled internet applications. homepage http://mapserver.gis.umn.edu/ master_sites http://download.osgeo.org/mapserver distname mapserver-${version} checksums md5 0d2ad6f56e8a1b5755e856a54f90071c \ rmd160 a1bf9a90e889c17ad95f7c52de1e6523189bcd8d \ sha256 a939d5e207017ff87e115816a0a8a13fb2751069feb90e12fe594c537a917199 depends_lib port:gd2 \ port:jpeg \ port:libpng \ port:freetype \ port:giflib \ patchfiles patch-Makefile.in.diff \ patch-renderers-agg-include-agg_renderer_outline_aa.h.diff configure.args --with-gd=${prefix} \ --with-png=${prefix} \ --with-zlib=${prefix} \ --with-jpeg=${prefix} \ --with-gif=${prefix} \ default_variants +wms +gdal +ogr +proj +cairo +wfs +proj \ +geos +postgis +wmsclient +wfsclient \ +wcs +sos +kml +fastcgi if {[variant_isset postgis]} { #check for most recent version of postgresql installed set HAVE_PGCONFIG [llength [glob -nocomplain -d ${prefix}/lib postgresql*/bin/pg_config]] #if not found, intall the postgresql port if {$HAVE_PGCONFIG == 0} { depends_lib-append port:postgresql90 } } variant postgis description {Add support for postgis sources} { set PGSQL_DIR [lindex [lsort -dec [glob -nocomplain -d ${prefix}/lib postgresql*]] 0] configure.args-append "--with-postgis=${PGSQL_DIR}/bin/pg_config" } variant wms description {Add WMS server support} { default_variants-append +proj } variant wfs description {Add WFS server support} { depends_lib-append port:libxml2 default_variants-append +proj +ogr +geos configure.args-append --with-wfs } variant sos description {Add SOS server support} { depends_lib-append port:libxml2 default_variants-append +proj +ogr configure.args-append --with-sos } variant wcs description {Add WCS server support} { default_variants-append +proj +gdal configure.args-append --with-wcs } variant wmsclient description {Add WMS client support} { depends_lib-append port:curl default_variants-append +proj +gdal configure.args-append --with-wmsclient } variant kml description {Add KML output support} { configure.args-append --with-kml } variant wfsclient description {Add WFS client support} { depends_lib-append port:libxml2 \ port:curl default_variants-append +proj +ogr +geos configure.args-append --with-wfsclient } variant cairo description {Add SVG and PDF support through cairo} { depends_lib-append path:lib/pkgconfig/cairo.pc:cairo configure.args-append --with-cairo } variant gdal description {Add GDAL input format support} { depends_lib-append port:gdal configure.args-append --with-gdal } variant ogr description {Add OGR input format support} { depends_lib-append port:gdal configure.args-append --with-ogr } variant proj description {Proj.4 reprojection support} { depends_lib-append port:proj configure.args-append --with-proj=${prefix} } variant fastcgi description {FastCGI support} { depends_lib-append port:fcgi configure.args-append --with-fastcgi=${prefix} } variant geos description {Add GEOS operations support} { depends_lib-append port:geos configure.args-append --with-geos } variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} { depends_run-append port:apache global cgi_path set cgi_path "${prefix}/www/cgi-bin/" } variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} { depends_run-append port:apache2 global cgi_path set cgi_path "${prefix}/apache2/cgi-bin/" } variant apache_apple conflicts apache apache2 description {Use Apple Apache} { global cgi_path set cgi_path "/Library/WebServer/CGI-Executables/" } if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} { #default to the apple apache version if none specified default_variants +apache_apple } destroot.target install-force destroot.violate_mtree yes post-destroot { file mkdir ${destroot}${cgi_path} xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}/mapserv }