1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mapserver |
---|
6 | version 5.2.0 |
---|
7 | maintainers nomaintainer |
---|
8 | description MapServer |
---|
9 | long_description MapServer is an Open Source development environment for building spatially-enabled internet applications. |
---|
10 | homepage http://mapserver.gis.umn.edu/ |
---|
11 | master_sites http://download.osgeo.org/mapserver |
---|
12 | checksums md5 6c0f210eb6510f0a43b6d5b09df8bb83 |
---|
13 | platforms darwin |
---|
14 | categories gis |
---|
15 | depends_lib port:gd2 \ |
---|
16 | port:geos |
---|
17 | |
---|
18 | configure.args --with-gd=${prefix} |
---|
19 | variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} { |
---|
20 | depends_lib-append port:gdal |
---|
21 | configure.args-append --with-gdal=${prefix}/bin/gdal-config \ |
---|
22 | --with-ogr=${prefix}/bin/gdal-config |
---|
23 | } |
---|
24 | |
---|
25 | variant proj description {Add projection support} { |
---|
26 | depends_lib-append port:proj |
---|
27 | configure.args-append --with-proj=${prefix} |
---|
28 | } |
---|
29 | |
---|
30 | variant wms requires proj description {Enable Web Map Service} { |
---|
31 | # --with-wms is enabled by default |
---|
32 | } |
---|
33 | |
---|
34 | set cgi_path "/Library/WebServer/CGI-Executables/" |
---|
35 | |
---|
36 | # apache macport interop |
---|
37 | if {[ file exists ${prefix}/sbin/httpd]} { |
---|
38 | set cgi_path "${prefix}/www/cgi-bin/" |
---|
39 | } |
---|
40 | |
---|
41 | destroot { |
---|
42 | file mkdir ${destroot}${cgi_path} |
---|
43 | xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path} |
---|
44 | } |
---|