# -*- 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
# $Id: Portfile 106383 2013-05-24 15:07:22Z stromnov@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                blosc
version             1.2.3
revision            0
categories          archivers devel
platforms           darwin
license             MIT

maintainers         stromnov openmaintainer

description         A blocking, shuffling and loss-less compression library.

long_description    Blosc is a high performance compressor optimized \
                    for binary data. It has been designed to transmit data \
                    to the processor cache faster than the traditional, \
                    non-compressed, direct memory fetch approach via \
                    a memcpy() OS call. It uses the blocking technique \
                    to reduce activity on the memory bus as much as possible.

homepage            http://www.blosc.org/
master_sites        http://blosc.org/sources/stable/

checksums           rmd160  237c34655a5d3fd7e32741a8078b7dcdb11c41a6 \
                    sha256  b311bb83f925ed6fdd710fb0187a4a0306bde83fc8f09ee6d74b4edfd9c34173

configure.args-append \
                    -DBUILD_STATIC=ON \
                    -DBUILD_HDF5_FILTER=OFF \
                    -DBUILD_TESTS=OFF \
                    -DBUILD_BENCHMARKS=OFF

variant hdf5 description {Build a blosc based compression filter for the HDF5 library.} {
    depends_lib-append          port:hdf5-18
    configure.args-delete       -DBUILD_HDF5_FILTER=OFF
    configure.args-append       -DBUILD_HDF5_FILTER=ON
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "blosc-(\\d+(?:\\.\\d+)*)${extract.suffix}"
