# $Id: Portfile 78379 2011-05-05 20:32:38Z ryandesign@macports.org $

PortSystem 1.0

name		szip
version		2.1
revision	2
categories	archivers
maintainers	nomaintainer
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.
platforms	darwin

homepage	http://www.hdfgroup.org/doc_resource/SZIP/
master_sites	http://www.hdfgroup.org/ftp/lib-external/szip/${version}/src/

checksums	sha1    9344a833b3193fb8cc3ce9d2c8df1bf1c5d125bc \
		rmd160  ab5ea40baa70b2f7a661b000f34e5781c05f87b0

# 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   http://www.hdfgroup.org/ftp/lib-external/szip/
livecheck.regex {"([0-9.]+)/"}
