source: trunk/dports/gis/mapserver/Portfile @ 42073

Last change on this file since 42073 was 42073, checked in by macsforever2000@…, 12 years ago

Added variants for apache web servers. Thanks to Ryan Schmidt for the code.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 42073 2008-11-14 16:23:20Z macsforever2000@macports.org $
2
3PortSystem 1.0
4
5name             mapserver
6version          5.2.0
7maintainers      googlemail.com:mbarchfe
8categories       gis
9platforms        darwin
10
11description      mapserver
12long_description MapServer is an Open Source development environment for \
13                 building spatially-enabled internet applications.
14
15homepage         http://mapserver.gis.umn.edu/
16master_sites     http://download.osgeo.org/mapserver
17
18checksums        md5 6c0f210eb6510f0a43b6d5b09df8bb83
19
20depends_lib      port:gd2 \
21                 port:geos
22
23patchfiles       patch-Makefile.in.diff
24
25configure.args   --with-gd=${prefix}
26variant gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} {
27    depends_lib-append      port:gdal
28    configure.args-append   --with-gdal=${prefix}/bin/gdal-config \
29                            --with-ogr=${prefix}/bin/gdal-config
30}
31
32variant proj description {Add projection and Web Map Service support} {
33    depends_lib-append      port:proj
34    configure.args-append   --with-proj=${prefix}
35}
36
37variant apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {
38        depends_run-append port:apache
39        global cgi_path
40        set cgi_path "${prefix}/www/cgi-bin/"
41}
42
43variant apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {
44        depends_run-append port:apache2
45        global cgi_path
46        set cgi_path "${prefix}/apache2/cgi-bin/"
47}
48
49variant apache_apple conflicts apache apache2 description {Use Apple Apache} {
50        global cgi_path
51        set cgi_path "/Library/WebServer/CGI-Executables/"
52}
53
54if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {
55        default_variants +apache2
56}
57
58destroot.target install-force
59post-destroot {
60    file mkdir ${destroot}${cgi_path}
61    xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}
62}
Note: See TracBrowser for help on using the repository browser.