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

    version 6.3.0

      View the most recent changes for the grass port at: grass.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for grass.
      The raw portfile for grass 6.3.0 is located here:
      http://grass.darwinports.com/dports/gis/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/grass


      The grass Portfile 58328 2009-09-26 20:28:29Z toby macports.org $

      PortSystem 1.0

      Name: grass
      Version: 6.3.0
      Maintainers: nomaintainer
      Category: gis
      Platform: darwin

      Description: GRASS
      Long Description: GRASS is a Geographic Information System (GIS) used for geospatial data management and analysis.

      Homepage: http://grass.osgeo.org
      Master Sites: http://grass.osgeo.org/grass63/source/

      Checksums: md5 7dce50a076e2481733148ba34cbebc07

      depends_lib port:fftw port:freetype port:gdal port:geos port:jpeg port:libpng port:openmotif port:proj port:tk

      use_parallel_build yes

      Patch Files: patch-Makefile.diff patch-configure.diff patch-macosx_Makefile.diff

      post-patch {
      reinplace "s| APPLICATIONS_DIR |${applications_dir}|" ${worksrcpath}/configure
      }

      configure.ldflags -framework OpenGL
      configure.args --with-fftw-includes=${prefix}/include --with-fftw-libs=${prefix}/lib --with-freetype --with-freetype-includes=${prefix}/include/freetype2 --with-freetype-libs=${prefix}/lib --with-gdal=${prefix}/bin/gdal-config --with-jpeg-includes=${prefix}/include --with-jpeg-libs=${prefix}/lib --with-motif --with-motif-includes=${prefix}/include --with-motif-libs=${prefix}/lib --with-png-includes=${prefix}/include --with-png-libs=${prefix}/lib --with-proj-includes=${prefix}/include --with-proj-libs=${prefix}/lib --with-proj-share=${prefix}/share/proj --with-tcltk-includes=${prefix}/include --with-tcltk-libs=${prefix}/lib --with-cxx --with-x --without-postgres --enable-largefile

      build.target default

      # installs into /opt/local/grass-6.3.0
      #destroot.violate_mtree yes

      Variant: mysql5 description "Install grass with mysql 5 support" {
      depends_lib-append path:bin/mysql_config5:mysql5
      configure.args-append --with-mysql
      configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql
      configure.args-append --with-mysql-libs=${prefix}/lib/mysql5/mysql
      configure.env-append MYSQLD_CONFIG=${prefix}/lib/mysql5/bin/mysql_config
      }

      Variant: postgresql83 description "Install grass with postgresql 8.3 support" {
      depends_lib-append port:postgresql83
      configure.args-delete --without-postgres
      configure.args-append --with-postgres
      configure.args-append --with-postgres-includes=${prefix}/include/postgresql83
      configure.args-append --with-postgres-libs=${prefix}/lib/postgresql83
      }

      Variant: sqlite3 description "Install grass with sqlite 3 support" {
      depends_lib-append port:sqlite3
      configure.args-append --with-sqlite
      configure.args-append --with-sqlite-includes=${prefix}/include
      configure.args-append --with-sqlite-libs=${prefix}/lib
      }


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

     Where to find more information:

    Darwin Ports



    Lightbox this page.