diff --git a/archivers/php-brotli/Makefile b/archivers/php-brotli/Makefile index 7fa6d19b57d2..d71a6527c0cd 100644 --- a/archivers/php-brotli/Makefile +++ b/archivers/php-brotli/Makefile @@ -1,33 +1,32 @@ PORTNAME= brotli -DISTVERSION= 0.19.0 +DISTVERSION= 0.20.0 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} MAINTAINER= pkaipila@gmail.com COMMENT= Brotli extension for PHP WWW= https://github.com/kjdev/php-ext-brotli LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libbrotlienc.so:archivers/brotli USES= php:ext pkgconfig -IGNORE_WITH_PHP= 86 USE_GITHUB= yes GH_ACCOUNT= kjdev GH_PROJECT= php-ext-brotli 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 diff --git a/archivers/php-brotli/distinfo b/archivers/php-brotli/distinfo index 374defaf4d3b..0074ead36d66 100644 --- a/archivers/php-brotli/distinfo +++ b/archivers/php-brotli/distinfo @@ -1,3 +1,3 @@ -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 +TIMESTAMP = 1783195881 +SHA256 (kjdev-php-ext-brotli-0.20.0_GH0.tar.gz) = 2902a1bc3ec16bf95e2d0e9ae7dc2f8be088d0ea1526fca5c2c5c4d3f01a9582 +SIZE (kjdev-php-ext-brotli-0.20.0_GH0.tar.gz) = 36801 diff --git a/archivers/php-brotli/files/patch-config.m4 b/archivers/php-brotli/files/patch-config.m4 deleted file mode 100644 index 9af10a1bc07b..000000000000 --- a/archivers/php-brotli/files/patch-config.m4 +++ /dev/null @@ -1,37 +0,0 @@ ---- 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