# $Id: Portfile 30260 2007-10-23 02:33:09Z jmpp@macports.org $ PortSystem 1.0 name mapserver version 5.2.0 maintainers nomaintainer 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 checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 extract.suffix .tar.gz platforms darwin categories gis depends_lib port:gd2 \ port:geos configure.args --with-gd=${prefix} variant gdalogr { depends_lib-append port:gdal configure.args-append --with-gdal=${prefix}/bin/gdal-config \ --with-ogr=${prefix}/bin/gdal-config } variant proj { depends_lib-append port:proj configure.args-append --with-proj=${prefix} } variant wms requires proj { # --with-wms is enabled by default } set cgi_path "/Library/WebServer/CGI-Executables/" # apache darwinport interop if {[ file exists ${prefix}/sbin/httpd]} { set cgi_path "${prefix}/www/cgi-bin/" } destroot { file mkdir ${destroot}${cgi_path} system "install -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}" }