# $Id: Portfile 87296 2011-11-16 18:27:28Z ryandesign@macports.org $

PortSystem 1.0

name		szip
version		2.1
revision	4
categories	archivers
# may only be used as part of HDF
license		Restrictive
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       rmd160  058d85cbbc9893bdda64e4c4ee967a773ae85e3a \
                sha256  a816d95d5662e8279625abdbea7d0e62157d7d1f028020b1075500bf483ed5ef

# Delete this when the version number actually changes.
# 2.1 was stealth-updated 2008-11-10?, 2011-05-05?, 2011-07-24?, 2011-11-14
dist_subdir     ${name}/${version}_4

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.]+)/"}
