# -*- 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 github 1.0 name zstd subport ${name} { PortGroup clang_dependency 1.0 PortGroup makefile 1.0 PortGroup muniversal 1.1 } subport zstdConfig.cmake { PortGroup cmake 1.1 } github.setup facebook zstd 1.5.5 v revision 0 checksums rmd160 afab9fe65b1c72babfc7b12ba31f2b49de14d32e \ sha256 9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4 \ size 2368543 categories archivers devel license {BSD GPL-2} maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer subport ${name} { description Zstandard - Fast real-time compression algorithm long_description Zstd, short for Zstandard, is a fast lossless compression \ algorithm, targeting real-time compression scenarios at \ zlib-level and better compression ratios. } subport zstdConfig.cmake { description CMake files for zstd long_description Installs {*}${description}. } github.tarball_from releases patchfiles patch-zstd-tiger-no-backtrace.diff \ flags.patch # Fix upgrade from previous version because -I flags are in the wrong order. configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include subport ${name} { depends_lib-append port:lz4 \ port:xz \ port:zlib # libzstd.dylib links to libSystem.B.dylib only. Dependencies like lz4 are # linked by CLI tools in ${prefix}/bin only. license_noconflict lz4 xz zlib platform darwin 8 { depends_build-append port:gmake build.cmd ${prefix}/bin/gmake } build.target allmost build.args V=1 test.run yes test.args {*}${build.args} # Exclude pre-release candidates github.livecheck.regex {([0-9.]+)} } subport zstdConfig.cmake { depends_lib-append port:${name} cmake.source_dir ${worksrcpath}/build/cmake supported_archs noarch platforms any installs_libs no post-destroot { delete ${destroot}${prefix}/bin \ ${destroot}${prefix}/share \ ${destroot}${prefix}/include \ ${destroot}${prefix}/lib/pkgconfig \ {*}[glob ${destroot}${prefix}/lib/lib*] } }