# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name            szip
version         2.1.1
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.

homepage        https://docs.hdfgroup.org/archive/support/doc_resource/SZIP/
master_sites    https://support.hdfgroup.org/ftp/lib-external/szip/${version}/src/

checksums           rmd160  3e6baaab7bf96fbc538154de59bba3902193ebab \
                    sha256  21ee958b4f2d4be2c9cabfa5e1a94877043609ce86fde5f286f105f7ff84d412 \
                    size    415774

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