# $Id: Portfile 62244 2010-01-01 20:40:29Z nox@macports.org $

PortSystem 1.0

name		szip
version		2.1
revision	1
categories	archivers
maintainers	physics.aamu.edu:marius
description	Szip is an implementation of the extended-Rice lossless compression \
		algorithm.
long_description \
	 	The Consultative Committee on Space Data Systems (CCSDS) has adopted \
	 	the extended-Rice algorithm for international standards for space \
	 	applications. Szip is reported to provide fast and effective \
	 	compression, specifically for the EOS data generated by the NASA \
	 	Earth Observatory System (EOS).	It was originally developed at \
	 	University of New Mexico (UNM) and integrated with HDF4 by UNM \
	 	researchers and developers.
homepage	http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/
platforms	darwin
master_sites	ftp://ftp.hdfgroup.org/lib-external/szip/${version}/src/
checksums	md5 1e0621efa66c2e1b07d7659703df5ea8 \
		sha1 6bb0e494adce0bc4a5f0360460ee29041dedd7b4 \
		rmd160 dfb3e60871f171eafc84fe502a2b836de8be7ffe

# Delete this when the version number actually changes.
dist_subdir	${name}/${version}_${revision}

configure.args	--disable-encoding

test.run	yes
test.target	check

variant encoder description {Enable SZIP encoding} {
	configure.args-delete	--disable-encoding
}

livecheck.type   regex
livecheck.url    ftp://ftp.hdfgroup.org/lib-external/szip/
livecheck.regex {(\d+(?:\.\d+)*)$}
