Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Jun 2026 19:31:53 +0000
From:      Vladimir Druzenko <vvd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Cc:        Paavo-Einari Kaipila <pkaipila@gmail.com>
Subject:   git: 9f79d999cc78 - main - archivers/php-brotli: Update 0.18.2 => 0.19.0
Message-ID:  <6a2718a9.3e37f.196a0fc8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by vvd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9f79d999cc78f4ad5eba8c5cd534a3c85ea0ecf2

commit 9f79d999cc78f4ad5eba8c5cd534a3c85ea0ecf2
Author:     Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2026-06-08 19:27:48 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2026-06-08 19:31:47 +0000

    archivers/php-brotli: Update 0.18.2 => 0.19.0
    
    Changelog:
    https://github.com/kjdev/php-ext-brotli/releases/tag/0.19.0
    
    Commit log:
    https://github.com/kjdev/php-ext-brotli/compare/0.18.2...0.19.0
    
    Enable APCu cache compression and patch config.m4 to always honor
    APCU setting.
    
    PR:             295867
    Sponsored by:   UNIS Labs
    Co-authored-by: Vladimir Druzenko <vvd@FreeBSD.org>
---
 archivers/php-brotli/Makefile              | 11 +++++++--
 archivers/php-brotli/distinfo              |  6 ++---
 archivers/php-brotli/files/patch-config.m4 | 37 ++++++++++++++++++++++++++++++
 archivers/php-brotli/pkg-descr             | 14 ++++++-----
 4 files changed, 57 insertions(+), 11 deletions(-)

diff --git a/archivers/php-brotli/Makefile b/archivers/php-brotli/Makefile
index bcd834ae8a6d..489eac6b0351 100644
--- a/archivers/php-brotli/Makefile
+++ b/archivers/php-brotli/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	brotli
-DISTVERSION=	0.18.2
-PORTREVISION=	1
+DISTVERSION=	0.19.0
 CATEGORIES=	archivers
 PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
 
@@ -22,4 +21,12 @@ PHP_MODNAME=	${PORTNAME}
 
 CONFIGURE_ARGS=	--with-libbrotli
 
+OPTIONS_DEFINE=		APCU
+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-brotli/distinfo b/archivers/php-brotli/distinfo
index 1118573f101a..374defaf4d3b 100644
--- a/archivers/php-brotli/distinfo
+++ b/archivers/php-brotli/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1755939450
-SHA256 (kjdev-php-ext-brotli-0.18.2_GH0.tar.gz) = d79ff26c24859485166a805e4340cdebdaad6246d93e9c5eeb90ae681bc801a6
-SIZE (kjdev-php-ext-brotli-0.18.2_GH0.tar.gz) = 34832
+TIMESTAMP = 1780640043
+SHA256 (kjdev-php-ext-brotli-0.19.0_GH0.tar.gz) = d5a75c4a022459fc413c43d1116335bef9b580e2fc2ac4d12930b7c5462d05b6
+SIZE (kjdev-php-ext-brotli-0.19.0_GH0.tar.gz) = 35738
diff --git a/archivers/php-brotli/files/patch-config.m4 b/archivers/php-brotli/files/patch-config.m4
new file mode 100644
index 000000000000..9af10a1bc07b
--- /dev/null
+++ b/archivers/php-brotli/files/patch-config.m4
@@ -0,0 +1,37 @@
+--- config.m4.orig	2026-06-05 04:27:29 UTC
++++ config.m4
+@@ -24,6 +24,9 @@ PHP_ARG_WITH(libbrotli, whether to use system brotli l
+ PHP_ARG_WITH(libbrotli, whether to use system brotli library,
+ [  --with-libbrotli        Use libbrotli], no, no)
+ 
++PHP_ARG_ENABLE(apcu, whether to enable APCu support,
++[  --enable-apcu           Enable APCu support], auto, no)
++
+ if test "$PHP_BROTLI" != "no"; then
+ 
+   BROTLI_MIN_VERSION=0.6
+@@ -132,12 +135,17 @@ if test "$PHP_BROTLI" != "no"; then
+     PHP_ADD_BUILD_DIR($ext_builddir/brotli/c/enc)
+   fi
+ 
+-  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
+ fi
diff --git a/archivers/php-brotli/pkg-descr b/archivers/php-brotli/pkg-descr
index 4d3da2e42028..59289f129dd5 100644
--- a/archivers/php-brotli/pkg-descr
+++ b/archivers/php-brotli/pkg-descr
@@ -1,7 +1,9 @@
-Brotli is a generic-purpose lossless compression algorithm that compresses
-data using a combination of a modern variant of the LZ77 algorithm, Huffman
-coding and 2nd order context modeling, with a compression ratio comparable
-to the best currently available general-purpose compression methods. It is
-similar in speed with deflate but offers more dense compression.
+This is the PHP extension for Brotli, a generic-purpose lossless compression
+algorithm that compresses data using a combination of a modern variant of the
+LZ77 algorithm, Huffman coding and 2nd order context modeling, with a
+compression ratio comparable to the best currently available general-purpose
+compression methods. It is similar in speed with deflate but offers more dense
+compression.
 
-This is the Brotli Extension for PHP
+This extension can also transparently compress objects stored in
+APCu cache. Just set apc.serializer=brotli in your php.ini.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a2718a9.3e37f.196a0fc8>