Grads version 1.9b4 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 1.9b4

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The grads Portfile 55363 2009-08-09 22:55:28Z takeshi macports.org $

      PortSystem 1.0

      Name: grads
      Version: 1.9b4
      Revision: 6
      Platform: darwin
      Maintainers: takeshi
      Category: science
      Description: interactive visualization tool for earth science data
      Master Sites: ftp://grads.iges.org/grads/1.9/:src ftp://grads.iges.org/grads/:data
      set gradssrc ${name}-src-${version}${extract.suffix}
      set gradsdata data.tar.Z
      distfiles ${gradssrc}:src ${gradsdata}:data
      Checksums: ${gradssrc} sha1 839e32693602e2695825d4d5a1a8ae7e1672c3a5 ${gradsdata} sha1 6a3e997868b358ecf71ea618c27ad10f28183f5e
      Homepage: http://www.iges.org/grads/grads.html
      Long Description: The Grid Analysis and Display System (GrADS) is an interactive desktop tool that is used for easy access, manipulation, and visualization of earth science data. The format of the data may be either binary, GRIB, NetCDF, or HDF-SDS (Scientific Data Sets). GrADS has been implemented worldwide on a variety of commonly used operating systems and is freely distributed over the Internet.

      depends_lib port:libwww port:readline port:rx port:netcdf port:udunits port:hdf4 port:libnc-dap port:gd2

      Patch Files: patch-configure.diff patch-grads.h.diff patch-wgrib.c.diff patch-bufrscan.c.diff patch-gacfg.c.diff patch-gxhpng.c.diff

      post-patch {
      reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/src/gx.h
      }

      configure.env SUPPLIBS=${prefix} LIBS=-lsz
      configure.args --with-readline --with-lats --with-nc --with-dods --with-hdf --with-x --with-printim --without-gui
      configure.cppflags -I${prefix}/include

      pre-build {
      reinplace "s|libwww.a|libwwwcore.a|g" ${worksrcpath}/src/Makefile
      reinplace "s|\$(supp_lib_dir)/inst.o| |g" ${worksrcpath}/src/Makefile
      }

      post-destroot {
      xinstall -d -m 755 ${destroot}${prefix}/share/${name}/
      foreach file [glob -directory ${workpath} *.dat *res] {
      file rename ${file} ${destroot}${prefix}/share/${name}/
      }
      system "ln -s ${prefix}/bin/${name}dods ${destroot}${prefix}/bin/${name}"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.