Ticket #16238: Portfile.2

File Portfile.2, 1.2 KB (added by mbarchfe@…, 16 years ago)

tidied up version (except for category)

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