Gdal-grass version 1.4.3 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    gdal-grass  most recent diff


    version 1.4.3

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


      # -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2

      PortSystem 1.0

      Name: gdal-grass
      Category: gis
      Version: 1.4.3
      Maintainers: vince
      Description: This plugin allows GDAL to read GRASS files
      Long Description: This plugin allows GDAL to read GRASS files

      Homepage: http://grass.osgeo.org/

      Platform: darwin

      depends_lib port:gdal port:grass

      Master Sites: http://download.osgeo.org/gdal/

      Checksums: md5 2bfb7640e03b4d9d012f1a5d62c0351d sha1 63b87ad1688cc365dc6bd6c3ccc854d0e6aa637a rmd160 60e3866a44d595cbf41368adb1b968387c7852b4


      use_configure yes

      configure.args-append --with-gdal=${prefix}/bin/gdal-config
      configure.args-append --with-grass=${prefix}



      # Select Grass version

      Variant: grass64 description "Builds against grass64" {
      depends_lib-delete port:grass
      depends_lib-append port:grass64

      configure.args-delete --with-grass=${prefix}/lib

      if {[file exists ${applications_dir}/GRASS-6.4.app]} {
      configure.args-append --with-grass=${applications_dir}/GRASS-6.4.app/Contents/MacOS/
      } else {
      configure.args-append --with-grass=${prefix}
      }
      }

      post-configure {
      if {[variant_isset universal]} {
      # Enforce universal flags
      reinplace -E "s|^(CXXFLAGS.*)|\\1 ${configure.universal_cxxflags}|" ${worksrcpath}/Makefile
      reinplace -E "s|^(LD_SHARED.*)|\\1 ${configure.universal_cxxflags}|" ${worksrcpath}/Makefile

      # Fixes destroot issues
      reinplace -E "s|^(GRASSTABLES_DIR\[^/]*)(.*)|\\1${destroot}\\2|" ${worksrcpath}/Makefile
      reinplace -E "s|^(AUTOLOAD_DIR\[^/]*)(.*)|\\1${destroot}\\2|" ${worksrcpath}/Makefile
      reinplace "s|mkdir|mkdir -p|" ${worksrcpath}/Makefile
      }
      }

      build.target

    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/gdal-grass
      % sudo port install gdal-grass
      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 gdal-grass
      ---> Verifying checksum for gdal-grass
      ---> Extracting gdal-grass
      ---> Configuring gdal-grass
      ---> Building gdal-grass with target all
      ---> Staging gdal-grass into destroot
      ---> Installing gdal-grass
    - 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 gdal-grass with these commands:
      %  man gdal-grass
      % apropos gdal-grass
      % which gdal-grass
      % locate gdal-grass

     Where to find more information:

    Darwin Ports



    Lightbox this page.