Ticket #34033: Portfile

File Portfile, 2.2 KB (added by jeabraham, 13 years ago)

New portfile

Line 
1# $Id$
2
3PortSystem 1.0
4
5name             mapserver
6version          6.0.2
7maintainers      googlemail.com:mbarchfe \
8                                 hbaspecto.com:jea
9categories       gis
10platforms        darwin
11
12description      mapserver
13long_description MapServer is an Open Source development environment for \
14                 building spatially-enabled internet applications.
15
16homepage         http://mapserver.gis.umn.edu/
17master_sites     http://download.osgeo.org/mapserver
18
19checksums        rmd160 18b50cff9252eca6f7c2ab74f8b6df45ca8ffc84
20
21depends_lib      port:gd2 \
22                 port:geos
23
24patchfiles       patch-Makefile.in.diff \
25                                 patch-renderers-agg-include-agg_renderer_outline_aa.h.diff
26
27configure.args   --with-gd=${prefix}
28variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} {
29    depends_lib-append      port:gdal
30    configure.args-append   --with-gdal=${prefix}/bin/gdal-config \
31                            --with-ogr=${prefix}/bin/gdal-config
32}
33
34variant proj description {Add projection and Web Map Service support} {
35    depends_lib-append      port:proj
36    configure.args-append   --with-proj=${prefix}
37}
38
39variant postgis description {Add PostGIS support} {
40    depends_lib-append      port:postgis
41    depends_lib-append          port:postgresql91
42    configure.args-append   --with-postgis=${prefix}/lib/postgresql91/bin/pg_config
43}
44
45variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {
46        depends_run-append port:apache
47        global cgi_path
48        set cgi_path "${prefix}/www/cgi-bin/"
49}
50
51variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {
52        depends_run-append port:apache2
53        global cgi_path
54        set cgi_path "${prefix}/apache2/cgi-bin/"
55}
56
57variant apache_apple conflicts apache apache2 description {Use Apple Apache} {
58        global cgi_path
59        set cgi_path "/Library/WebServer/CGI-Executables/"
60}
61
62if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {
63        default_variants +apache2
64}
65
66destroot.target install-force
67destroot.violate_mtree yes
68post-destroot {
69    file mkdir ${destroot}${cgi_path}
70    xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}
71}