# -*- 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.2.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  0e1062a944e5ef50866d31b1697c0728a690ef89 \
                    sha256  2ad14ed9af63d4a70cb05df5d5629871d052371ad017cf5559dc76c41ae3865f \
                    size    18231513

compiler.c_standard     2011
compiler.cxx_standard   2017


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
}
