# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name hdf4 version 4.2r3 platforms darwin categories science maintainers takeshi@macports.org description file format for storing scientific data and utilities long_description ${description} homepage http://www.hdfgroup.org/products/hdf4/index.html master_sites ftp://ftp.hdfgroup.org/HDF/HDF_Current/src/ checksums md5 767382a31470e795f4c4217e33a689e8 \ sha1 31fa41dc5cb06c8f3b34a064ca83cefae16ae1f6 \ rmd160 cab74803c04dcc07ef7b0f6e69ce7462a2d6e7a3 depends_lib port:g95 port:zlib port:jpeg distname HDF$version configure.args --with-szlib=no --disable-netcdf configure.env F77=${prefix}/bin/g95 configure.ldflags "-L${worksrcpath}/src/.libs -L${prefix}/lib" test.run yes test.target check post-destroot { file mkdir ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/hdf/util/testfiles ${destroot}${prefix}/share/doc/${name}/samples foreach f {COPYING INSTALL README release_notes/HISTORY.txt} { file copy ${worksrcpath}/$f ${destroot}${prefix}/share/doc/${name}/ } foreach f {bin/ncdump bin/ncgen lib/libudport.a \ include/netcdf.h include/netcdf.inc include/netcdf.f90 \ share/man/man1/ncgen.1 share/man/man1/ncdump.1} { file delete ${destroot}${prefix}/$f } } variant szip description {installs szip} { configure.args-delete --with-szlib=no configure.args-append --with-szlib=yes depends_lib-append port:szip } livecheck.check regex livecheck.url ${homepage} livecheck.regex {The latest Official Release of HDF is ([0-9]+\.[0-9]+r[0-9]+)}