# -*- 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 118123 2014-03-23 09:13:13Z stromnov@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0
PortGroup           github 1.0

github.setup        Blosc c-blosc 1.3.5 v
name                blosc
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/

checksums           rmd160  f78fb7a12bd80a21ef1e46bb94437f04b5245b15 \
                    sha256  2a9bc39249198e618b03d788a7fd066013761bee550e7103adbdc81df0447f9c

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
}
