Ticket #16238: Portfile

File Portfile, 1.1 KB (added by mbarchfe@…, 16 years ago)

Portfile for MapServer

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