Mapserver version 5.2.0 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    mapserver  most recent diff


    version 5.2.0

      View the most recent changes for the mapserver port at: mapserver.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for mapserver.
      The raw portfile for mapserver 5.2.0 is located here:
      http://mapserver.darwinports.com/dports/gis/mapserver/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/mapserver


      The mapserver Portfile 42074 2008-11-14 16:41:42Z macsforever2000 macports.org $

      PortSystem 1.0

      Name: mapserver
      Version: 5.2.0
      Maintainers: googlemail.com:mbarchfe
      Category: gis
      Platform: darwin

      Description: mapserver
      Long Description: MapServer is an Open Source development environment for building spatially-enabled internet applications.

      Homepage: http://mapserver.gis.umn.edu/
      Master Sites: http://download.osgeo.org/mapserver

      Checksums: md5 6c0f210eb6510f0a43b6d5b09df8bb83

      depends_lib port:gd2 port:geos

      Patch Files: patch-Makefile.in.diff

      configure.args --with-gd=${prefix}
      Variant: gdalogr description {Add raster formats from gdal (Geospatial Data Abstraction Library) and vector formats from OGR Simple Features Library} {
      depends_lib-append port:gdal
      configure.args-append --with-gdal=${prefix}/bin/gdal-config --with-ogr=${prefix}/bin/gdal-config
      }

      Variant: proj description {Add projection and Web Map Service support} {
      depends_lib-append port:proj
      configure.args-append --with-proj=${prefix}
      }

      Variant: apache conflicts apache2 apache_apple description {Use MacPorts Apache 1} {
      depends_run-append port:apache
      global cgi_path
      set cgi_path "${prefix}/www/cgi-bin/"
      }

      Variant: apache2 conflicts apache apache_apple description {Use MacPorts Apache 2} {
      depends_run-append port:apache2
      global cgi_path
      set cgi_path "${prefix}/apache2/cgi-bin/"
      }

      Variant: apache_apple conflicts apache apache2 description {Use Apple Apache} {
      global cgi_path
      set cgi_path "/Library/WebServer/CGI-Executables/"
      }

      if {![variant_isset apache] && ![variant_isset apache2] && ![variant_isset apache_apple]} {
      default_variants +apache2
      }

      destroot.target install-force
      destroot.violate_mtree yes
      post-destroot {
      file mkdir ${destroot}${cgi_path}
      xinstall -m 755 ${worksrcpath}/mapserv ${destroot}${cgi_path}
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/mapserver
      % sudo port install mapserver
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching mapserver
      ---> Verifying checksum for mapserver
      ---> Extracting mapserver
      ---> Configuring mapserver
      ---> Building mapserver with target all
      ---> Staging mapserver into destroot
      ---> Installing mapserver
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using mapserver with these commands:
      %  man mapserver
      % apropos mapserver
      % which mapserver
      % locate mapserver

     Where to find more information:

    Darwin Ports



    Lightbox this page.