# $Id: Portfile,v 1.5 2005/06/07 22:02:09 mww Exp $

PortSystem 1.0
name       	hdf5
version    	1.6.4
categories 	science
maintainers     persquare@mac.com
description     a general purpose library and file format for storing scientific data
long_description	HDF5 is a general purpose library and file format for storing scientific data.
homepage        http://hdf.ncsa.uiuc.edu/HDF5/
master_sites    ftp://ftp.ncsa.uiuc.edu/HDF/HDF5/current/src/
checksums		md5 a837391b633fc4c6681905d89047c032
depends_lib     port:zlib				
configure.args  --enable-cxx --with-zlib=${prefix}/lib
configure.env	CPPFLAGS=-I${prefix}/include
destroot.destdir        prefix=${destroot}${prefix}
patchfiles	patch-commence.in patch-c-commence.in

variant szip {
	configure.args-append	--with-szlib=${prefix}/lib
	depends_lib-append		lib:libsz:szip
}
