Files

51 lines
1.9 KiB
Tcl
Raw Permalink Normal View History

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup php 1.1
name php-zstd
categories-append devel
2026-03-30 02:26:33 +02:00
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license MIT
2025-10-03 22:53:46 +02:00
php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
2024-11-14 18:12:43 -06:00
# Not using "php.pecl yes" because that distfile is 15 times larger because it
# includes a bundled copy of libzstd that we don't use.
homepage http://pecl.php.net/package/${php.pecl.name}
description Zstandard compression
long_description This extension allows Zstandard compression from PHP
2023-01-23 06:04:49 -06:00
if {[vercmp ${php.branch} >= 7.0]} {
2026-07-03 13:10:50 +02:00
github.setup kjdev php-ext-zstd 0.17.0
2022-12-03 03:31:37 -06:00
revision 0
2026-07-03 13:10:50 +02:00
checksums rmd160 d901e6db720c0c93f38d4a318a15e769faedce95 \
sha256 cfe4508bbfd8ad0bb6733faabab10343afd433954acf806dfadcaa3398334ae1 \
size 39179
2023-01-23 06:04:49 -06:00
} elseif {[vercmp ${php.branch} >= 5.2]} {
2021-10-05 19:17:42 -05:00
github.setup kjdev php-ext-zstd 0.11.0
2020-11-21 09:04:03 -06:00
revision 0
2021-10-05 19:17:42 -05:00
checksums rmd160 ba4ed77ec02699ef274ab14a818c6b899cd32343 \
sha256 5733663812e2729faf9d3c412cfa03ca11b4dbb1e780e2893ecba4ab1e7ab99e \
size 19785
2020-11-21 09:04:03 -06:00
}
if {${name} ne ${subport}} {
2021-01-30 21:48:11 -06:00
github.tarball_from archive
2024-01-31 16:33:57 -06:00
if {[vercmp ${php.branch} >= 7.0]} {
# If APCu is present at build time, a zstd serializer for APCu will be built.
# https://github.com/kjdev/php-ext-zstd/issues/66
depends_build-append \
port:${php}-APCu
}
depends_lib-append port:zstd
2020-11-21 09:04:03 -06:00
depends_build-append path:bin/pkg-config:pkgconfig
2020-11-21 09:04:03 -06:00
configure.args-append --with-libzstd
}