diff --git a/devel/pecl-msgpack/Makefile b/devel/pecl-msgpack/Makefile index 88e593818fc0..835234fbe8c7 100644 --- a/devel/pecl-msgpack/Makefile +++ b/devel/pecl-msgpack/Makefile @@ -1,22 +1,21 @@ PORTNAME= msgpack -PORTVERSION= 3.0.0 +PORTVERSION= 3.0.1 CATEGORIES= devel MAINTAINER= fluffy@FreeBSD.org COMMENT= Provides API for communicating with MessagePack serialization WWW= https://pecl.php.net/package/msgpack LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE USES= php:pecl -IGNORE_WITH_PHP= 86 -OPTIONS_DEFINE= OPCACHE -OPTIONS_DEFAULT= OPCACHE -OPCACHE_DESC?= Use OPcache to improve performance +OPTIONS_DEFINE= APCU +OPTIONS_DEFAULT= APCU +APCU_DESC= Register as a serializer for APCu -OPCACHE_BUILD_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu@${PHP_FLAVOR} -OPCACHE_RUN_DEPENDS= ${PHPBASE}/lib/php/${PHP_EXT_DIR}/apcu.so:devel/pecl-APCu@${PHP_FLAVOR} -OPCACHE_USE= PHP=opcache +APCU_BUILD_DEPENDS= ${LOCALBASE}/include/php/ext/apcu/apc_serializer.h:devel/pecl-APCu@${PHP_FLAVOR} +APCU_CONFIGURE_ENABLE= apcu .include diff --git a/devel/pecl-msgpack/distinfo b/devel/pecl-msgpack/distinfo index efc3d2b04068..d8ab0471ee7d 100644 --- a/devel/pecl-msgpack/distinfo +++ b/devel/pecl-msgpack/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1727459256 -SHA256 (PECL/msgpack-3.0.0.tgz) = 55306a84797d399c6b269181ec484634f18bea1330bbd9d7405043c597de69cd -SIZE (PECL/msgpack-3.0.0.tgz) = 130225 +TIMESTAMP = 1780962864 +SHA256 (PECL/msgpack-3.0.1.tgz) = e30be355ab79aaea4568692fbd6073fd7c7f50ea8d3cf12edce40fc0c921d868 +SIZE (PECL/msgpack-3.0.1.tgz) = 131263 diff --git a/devel/pecl-msgpack/files/patch-config.m4 b/devel/pecl-msgpack/files/patch-config.m4 new file mode 100644 index 000000000000..a8aa8ce863b8 --- /dev/null +++ b/devel/pecl-msgpack/files/patch-config.m4 @@ -0,0 +1,32 @@ +--- config.m4.orig 2026-06-09 03:05:00 UTC ++++ config.m4 +@@ -4,14 +4,22 @@ + Make sure that the comment is aligned: + [ --with-msgpack Include msgpack support]) + ++PHP_ARG_ENABLE(apcu, whether to enable APCu support, ++[ --enable-apcu Enable APCu support], auto, no) ++ + if test "$PHP_MSGPACK" != "no"; then +- AC_MSG_CHECKING([for APC/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 + + PHP_NEW_EXTENSION(msgpack, msgpack.c msgpack_pack.c msgpack_unpack.c msgpack_class.c msgpack_convert.c, $ext_shared)