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

    version 1.6.9

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


      # -*- coding: utf-8; mode: tcl; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; truncate-lines: t -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The hdf5 Portfile 52302 2009-06-13 20:37:48Z jochen macports.org $

      PortSystem 1.0

      Name: hdf5
      Version: 1.6.9
      Revision: 0
      Category: science
      Maintainers: openmaintainer jochen

      Description: HDF5 general purpose library and file format for storing scientific data
      Long Description: ${description}
      Homepage: http://www.hdfgroup.org/HDF5/
      Platform: darwin
      Master Sites: ftp://ftp.hdfgroup.org/HDF5/current16/src/ ftp://ftp.hdfgroup.org/HDF5/prev-releases/hdf5-${version}/src/

      Checksums: md5 751eb3317a47e7c58978e1c3a13a93fc sha1 0481ce8cf2e62b9b10418065901369d4e0dbb4dc rmd160 05ca8a3229bdd6e214d0e843afc065d0fe9f47c7

      depends_lib port:zlib
      Patch Files: patch-commence.diff patch-c-commence.diff patch-fortran-commence.diff patch-H5f90i.diff patch-configure.diff patch-c++_configure.diff patch-fortran_configure.diff

      universal_variant no

      use_parallel_build yes
      configure.ccache no

      configure.args --enable-cxx --with-zlib=yes --with-szlib=no
      configure.ldflags -L${worksrcpath}/src/.libs -L${prefix}/lib

      destroot.destdir prefix=${destroot}${prefix}

      test.run yes
      test.target check


      # variant descriptions

      Variant: fortran description {Include the Fortran interface} {
      configure.args-delete --disable-fortran
      configure.args-append --enable-fortran
      pre-fetch {
      if { ![variant_isset gcc43] && ![variant_isset gcc42] && ![variant_isset g95] } {
      error "You must specify a compiler variant in order to build the Fortran interface"
      }
      }
      }

      Variant: szip description {Enable szip compression support} {
      configure.args-delete --with-szlib=no
      configure.args-append --with-szlib=yes
      depends_lib-append port:szip
      }

      Variant: threadsafe description {Enable threadsafety (experimental, fails unit-tests)} {
      configure.args-delete --disable-threadsafe
      configure.args-append --enable-threadsafe
      }


      Variant: gcc42 conflicts g95 gcc43 description {Compile using GCC 4.2} {
      depends_lib-append port:gcc42
      configure.compiler macports-gcc-4.2
      }

      Variant: gcc43 conflicts g95 gcc42 description {Compile using GCC 4.3} {
      depends_lib-append port:gcc43
      configure.compiler macports-gcc-4.3
      configure.env-append LD=${prefix}/bin/g++-mp-4.3
      }

      Variant: g95 requires fortran conflicts gcc42 gcc43 description {Use g95 Fortran compiler (unsupported)} {
      depends_lib-append port:g95
      patchfiles-append patch-powerpc-apple.diff
      configure.fc ${prefix}/bin/g95
      }

      Variant: optimized description {Higher compiler optimization for host machine (esp. for gcc43)} {
      configure.cflags-delete -O2
      configure.cxxflags-delete -O2
      configure.fflags-delete -O2
      configure.cflags-append -ftree-vectorize -O3
      configure.cxxflags-append -ftree-vectorize -O3
      configure.fflags-append -ftree-vectorize -O3
      if { [variant_isset gcc43] } {
      configure.cflags-append -march=native
      configure.cxxflags-append -march=native
      configure.fflags-append -march=native
      }
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.