H4h5tools version 2.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    h4h5tools  most recent diff


    version 2.0

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


      The h4h5tools Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: h4h5tools
      Version: 2.0
      Category: science
      Platform: darwin
      Maintainers: dal.ca:tom.duck openmaintainer

      Description: HDF4 to HDF5 conversion tools.
      Long Description: Provides the h4toh5 conversion utility and library.

      Homepage: http://hdf.ncsa.uiuc.edu/h4toh5/
      Master Sites: ftp://ftp.hdfgroup.org/HDF5/h4toh5/src/
      distname h4h5tools_20

      Checksums: md5 fda518fb9441fb04ca9f9b3ae0688260 sha1 eb26d1c094d5d2ab9bef2b488cdbba709ebe6ca3 rmd160 19a452244b3d4b6afa3f26ff0bd3b713b469e566

      depends_lib-append port:hdf5 port:hdf4 port:netcdf

      configure.cc ${prefix}/bin/h4cc

      # Setting H4_HAVE_NETCDF overcomes a bug in the distribution. This has been
      # communicated upstream, and hopefully will be fixed.
      configure.cflags -DH4_HAVE_NETCDF

      post-destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
      xinstall -m 644 -W ${worksrcpath} README.txt COPYING copyright.html ${destroot}${prefix}/share/doc/${name}

      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/pdf
      xinstall -m 644 -W ${worksrcpath}/doc H4H5ProgrammersNotes.pdf h4toh5lib_RM.pdf h4toh5lib_UG.pdf ${destroot}${prefix}/share/doc/${name}/doc/pdf

      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc/html
      xinstall -m 644 -W ${worksrcpath}/doc h4toh5lib_RM.html h4toh5lib_UG.html ${destroot}${prefix}/share/doc/${name}/doc/html
      }

      livecheck.type regexm
      livecheck.url ${homepage}
      livecheck.regex {Latest Official Release of H4 / H5 Conversion Library:.?<[^>]*>([0-9]+\.[0-9])}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.