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

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

Added new port mapserver. (#16238)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 41898 2008-11-12 03:02:36Z macsforever2000@macports.org $
2
3PortSystem 1.0
4
5name             mapserver
6version          5.2.0
7maintainers      nomaintainer
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 support} {
33    depends_lib-append      port:proj
34    configure.args-append   --with-proj=${prefix}
35}
36
37#variant wms requires proj description {Enable Web Map Service} {
38    # --with-wms is enabled by default
39#}
40
41set cgi_path "/Library/WebServer/CGI-Executables/"
42
43# apache macport interop
44if {[ file exists ${prefix}/sbin/httpd]} {
45    set cgi_path "${prefix}/www/cgi-bin/"
46}
47
48destroot.target install-force
49post-destroot {
50    file mkdir ${destroot}${cgi_path}
51    xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}
52}
Note: See TracBrowser for help on using the repository browser.