| 1 | # $Id: Portfile 30260 2007-10-23 02:33:09Z jmpp@macports.org $ |
|---|
| 2 | PortSystem 1.0 |
|---|
| 3 | name mapserver |
|---|
| 4 | version 5.2.0 |
|---|
| 5 | maintainers nomaintainer |
|---|
| 6 | description MapServer |
|---|
| 7 | long_description MapServer is an Open Source development environment for building spatially-enabled internet applications. |
|---|
| 8 | homepage http://mapserver.gis.umn.edu/ |
|---|
| 9 | master_sites http://download.osgeo.org/mapserver |
|---|
| 10 | checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 |
|---|
| 11 | extract.suffix .tar.gz |
|---|
| 12 | platforms darwin |
|---|
| 13 | categories gis |
|---|
| 14 | depends_lib port:gd2 \ |
|---|
| 15 | port:geos |
|---|
| 16 | |
|---|
| 17 | configure.args --with-gd=${prefix} |
|---|
| 18 | variant gdalogr { |
|---|
| 19 | depends_lib-append port:gdal |
|---|
| 20 | configure.args-append --with-gdal=${prefix}/bin/gdal-config \ |
|---|
| 21 | --with-ogr=${prefix}/bin/gdal-config |
|---|
| 22 | } |
|---|
| 23 | |
|---|
| 24 | variant proj { |
|---|
| 25 | depends_lib-append port:proj |
|---|
| 26 | configure.args-append --with-proj=${prefix} |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | variant wms requires proj { |
|---|
| 30 | # --with-wms is enabled by default |
|---|
| 31 | } |
|---|
| 32 | |
|---|
| 33 | set cgi_path "/Library/WebServer/CGI-Executables/" |
|---|
| 34 | |
|---|
| 35 | # apache darwinport interop |
|---|
| 36 | if {[ file exists ${prefix}/sbin/httpd]} { |
|---|
| 37 | set cgi_path "${prefix}/www/cgi-bin/" |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | destroot { |
|---|
| 41 | file mkdir ${destroot}${cgi_path} |
|---|
| 42 | system "install -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}" |
|---|
| 43 | } |
|---|