# -*- 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
PortGroup           cmake   1.1
PortGroup           github  1.0

github.setup        facebook openzl 0.3.0 v
github.tarball_from archive
revision            0
categories          archivers
license             BSD
maintainers         nomaintainer

description         OpenZL delivers high compression ratios while preserving high speed, a level of performance that is out of reach for generic compressors.
long_description    ${description}
homepage            https://openzl.org

checksums           rmd160  304ff6ee9f5b010fe133c46cacc6166f0b36df7b \
                    sha256  6e105e5c49187ebf63e0bf62fb3ecb22b628248c0bf55bd40ace434721f394f5 \
                    size    19023632

compiler.c_standard 2011

depends_build-append path:bin/pkg-config:pkgconfig

depends_lib-append  port:zstd \
                    port:lz4

configure.ldflags-append -llz4 \
                    -lzstd

destroot {
    set builddir  ${worksrcpath}/../build
    xinstall  ${builddir}/cli/zli ${destroot}${prefix}/bin
}
