git: e5a35b56c223 - main - archivers/php-zstd: Update 0.15.2 => 0.16.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Jun 2026 19:31:54 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e5a35b56c2236596c728276135e5d07ee8449b10
commit e5a35b56c2236596c728276135e5d07ee8449b10
Author: Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2026-06-08 19:29:23 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-08 19:31:48 +0000
archivers/php-zstd: Update 0.15.2 => 0.16.0
Changelog:
https://github.com/kjdev/php-ext-zstd/releases/tag/0.16.0
Commit log:
https://github.com/kjdev/php-ext-zstd/compare/0.15.2...0.16.0
Patch config.m4 to always honor APCU setting.
PR: 295867
Sponsored by: UNIS Labs
Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
---
archivers/php-zstd/Makefile | 4 ++--
archivers/php-zstd/distinfo | 6 ++---
archivers/php-zstd/files/patch-config.m4 | 38 ++++++++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 5 deletions(-)
diff --git a/archivers/php-zstd/Makefile b/archivers/php-zstd/Makefile
index 9349a9bfb39d..017b59e8ecfc 100644
--- a/archivers/php-zstd/Makefile
+++ b/archivers/php-zstd/Makefile
@@ -1,6 +1,5 @@
PORTNAME= zstd
-DISTVERSION= 0.15.2
-PORTREVISION= 1
+DISTVERSION= 0.16.0
CATEGORIES= archivers
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
@@ -27,5 +26,6 @@ OPTIONS_DEFAULT= APCU
APCU_DESC= APCu cache compression support for objects
APCU_BUILD_DEPENDS= ${LOCALBASE}/include/php/ext/apcu/apc_serializer.h:devel/pecl-APCu@${PHP_FLAVOR}
+APCU_CONFIGURE_ENABLE= apcu
.include <bsd.port.mk>
diff --git a/archivers/php-zstd/distinfo b/archivers/php-zstd/distinfo
index 4ebb72534a6f..a4f2ce65806d 100644
--- a/archivers/php-zstd/distinfo
+++ b/archivers/php-zstd/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1756840253
-SHA256 (kjdev-php-ext-zstd-0.15.2_GH0.tar.gz) = 3543a86b0e2ddffd7da2e94aaf97e03701e0efbf0a94d6904e084b823d8a9412
-SIZE (kjdev-php-ext-zstd-0.15.2_GH0.tar.gz) = 37930
+TIMESTAMP = 1780639557
+SHA256 (kjdev-php-ext-zstd-0.16.0_GH0.tar.gz) = 0dd59954167de75d8bb335268144a54b4df1326c807580305fc0e3763c923f7d
+SIZE (kjdev-php-ext-zstd-0.16.0_GH0.tar.gz) = 38268
diff --git a/archivers/php-zstd/files/patch-config.m4 b/archivers/php-zstd/files/patch-config.m4
new file mode 100644
index 000000000000..79c405637fe6
--- /dev/null
+++ b/archivers/php-zstd/files/patch-config.m4
@@ -0,0 +1,38 @@
+--- config.m4.orig 2026-06-05 04:23:54 UTC
++++ config.m4
+@@ -27,6 +27,9 @@ PHP_ARG_WITH(libzstd, whether to use system zstd libra
+ PHP_ARG_WITH(libzstd, whether to use system zstd library,
+ [ --with-libzstd Use system zstd library], no, no)
+
++PHP_ARG_ENABLE(apcu, whether to enable APCu support,
++[ --enable-apcu Enable APCu support], auto, no)
++
+ if test "$PHP_ZSTD" != "no"; then
+
+ LIBZSTD_MIN_VERSION=1.4.0
+@@ -105,13 +108,18 @@ dnl APCu
+ fi
+
+ dnl APCu
+-AC_MSG_CHECKING([for APCu includes])
+-if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then
+- apc_inc_path="$phpincludedir"
+- AC_MSG_RESULT([APCu in $apc_inc_path])
+- AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support])
+-else
+- AC_MSG_RESULT([not found])
++if test "$PHP_APCU" != "no"; then
++ AC_MSG_CHECKING([for APCu includes])
++ if test -f "$phpincludedir/ext/apcu/apc_serializer.h"; then
++ apc_inc_path="$phpincludedir"
++ AC_MSG_RESULT([APCu in $apc_inc_path])
++ AC_DEFINE(HAVE_APCU_SUPPORT, 1, [Whether to enable APCu support])
++ else
++ if test "$PHP_APCU" != "auto"; then
++ AC_MSG_ERROR([apc_serializer.h header not found])
++ fi
++ AC_MSG_RESULT([not found])
++ fi
+ fi
+
+ dnl coverage