1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mapserver |
---|
6 | version 6.0.2 |
---|
7 | maintainers googlemail.com:mbarchfe \ |
---|
8 | hbaspecto.com:jea |
---|
9 | categories gis |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description mapserver |
---|
13 | long_description MapServer is an Open Source development environment for \ |
---|
14 | building spatially-enabled internet applications. |
---|
15 | |
---|
16 | homepage http://mapserver.gis.umn.edu/ |
---|
17 | master_sites http://download.osgeo.org/mapserver |
---|
18 | |
---|
19 | checksums rmd160 18b50cff9252eca6f7c2ab74f8b6df45ca8ffc84 |
---|
20 | |
---|
21 | depends_lib port:gd2 \ |
---|
22 | port:geos |
---|
23 | |
---|
24 | patchfiles patch-Makefile.in.diff \ |
---|
25 | patch-renderers-agg-include-agg_renderer_outline_aa.h.diff |
---|
26 | |
---|
27 | configure.args --with-gd=${prefix} |
---|
28 | variant 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 | |
---|
34 | variant proj description {Add projection and Web Map Service support} { |
---|
35 | depends_lib-append port:proj |
---|
36 | configure.args-append --with-proj=${prefix} |
---|
37 | } |
---|
38 | |
---|
39 | variant 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 | |
---|
45 | variant 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 | |
---|
51 | variant 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 | |
---|
57 | variant apache_apple conflicts apache apache2 description {Use Apple Apache} { |
---|
58 | global cgi_path |
---|
59 | set cgi_path "/Library/WebServer/CGI-Executables/" |
---|
60 | } |
---|
61 | |
---|
62 | if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} { |
---|
63 | default_variants +apache2 |
---|
64 | } |
---|
65 | |
---|
66 | destroot.target install-force |
---|
67 | destroot.violate_mtree yes |
---|
68 | post-destroot { |
---|
69 | file mkdir ${destroot}${cgi_path} |
---|
70 | xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path} |
---|
71 | } |
---|