# -*- 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
maintainers {eborisch @eborisch}
description An HDF5 plugin supporting LZ4 compression/decompression.
long_description ${description} Provides very high throughput compression \
and decompression. Use filter ID = 32004 to access. See \
also http://www.hdfgroup.org/services/filters.html for \
set commit 8fa813aa369c15127c551cfdeebe4cbc090b4687
github.setup dectris HDF5Plugin ${commit}
rmd160 03229c8803b5ba198cca61bab8788353d0cc00a2 \
sha256 fda27a3a8698ef53be8cefdb3caa05640c0996f7e16f34365f525e0434218aac
# use installed liblz4 instead
delete ${worksrcpath}/lz4.c ${worksrcpath}/lz4.h
# OSX and MacPorts-specific tweaks
patchfiles Makefile.patch
if {${os.platform} eq "darwin" && ${os.major} > 13} {
reinplace -E "s^#define (hton|ntoh)ll.*^^" h5zlz4.c
reinplace "s^uncompress^decompress_fast^" h5zlz4.c
reinplace "s^%%PREFIX%%^${prefix}^" Makefile
build.env-append CC=${configure.cc}
if {[vercmp [macports_version] 2.5.99] >= 0} {
build.env-append CFLAGS=${configure.cflags} \
LDFLAGS=${configure.ldflags}
build.env-append CFLAGS="${configure.cflags}"
build.env-append LDFLAGS="${configure.ldflags}"
${destroot}${prefix}/lib/hdf5/ \
${destroot}${prefix}/share/doc/${name}/ \