Grads2 version 2.0.a5.oga.5 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 2.0.a5.oga.5

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


      # -*- 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 grads2 Portfile 55498 2009-08-12 08:26:02Z takeshi macports.org $

      PortSystem 1.0

      Name: grads2
      Version: 2.0.a5.oga.5
      Revision: 1
      Platform: darwin
      Maintainers: takeshi
      Category: science
      Description: interactive visualization tool for earth science data
      Master Sites: sourceforge:opengrads
      distname grads-${version}-bundle
      worksrcdir grads-${version}
      Checksums: md5 16ea4c90f6e42be18fa49693ddc5d810 sha1 dcae4bf6744a69a5d7bfa020dc087d5f12fc67ae rmd160 9fcaf9aadb5488f5597bf80799c68fb3f50104ff
      Homepage: http://www.opengrads.org/
      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:gd2 port:libnc-dap port:gadap port:wgrib2 port:curl port:libgeotiff
      depends_build port:pkgconfig

      Patch Files: patch-src-Makefile.in.diff

      pre-configure {
      reinplace "s|lwww|lwwwcore|g" ${worksrcpath}/configure
      }

      configure.env-append SUPPLIBS="${prefix}"
      configure.args --with-readline --enable-dyn-supplibs --with-nc --with-dap --with-netcdf=${prefix} --with-geotiff --with-x --with-printim --without-gui --program-suffix="-2"
      configure.cppflags -I${prefix}/include
      configure.ldflags -L${prefix}/lib

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

      test.run yes
      test.target check

      post-destroot {
      xinstall -d -m 755 ${destroot}${prefix}/share/${name}
      eval xinstall -m 644 [glob -directory ${worksrcpath}/data *.dat *res] ${destroot}${prefix}/share/${name}
      xinstall -d -m 755 ${destroot}${prefix}/share/${name}/tables
      eval xinstall -m 644 [glob -directory ${worksrcpath}/data/tables *] ${destroot}${prefix}/share/${name}/tables
      }

      platform darwin 8 {
      depends_lib-delete libnc-dap
      configure.args-delete --with-dap
      configure.args-append --without-dap
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.