git: 921c3c48eba0 - main - archivers/php-lz4: Register as APCu serialization wrappers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 08 Nov 2025 00:07:36 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=921c3c48eba0e235514f372b50249fb41d9e661f
commit 921c3c48eba0e235514f372b50249fb41d9e661f
Author: Paavo-Einari Kaipila <pkaipila@gmail.com>
AuthorDate: 2025-11-08 00:06:44 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-11-08 00:06:44 +0000
archivers/php-lz4: Register as APCu serialization wrappers
PR: 290881
---
archivers/php-lz4/Makefile | 9 ++++++++-
archivers/php-lz4/pkg-descr | 9 ++++++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/archivers/php-lz4/Makefile b/archivers/php-lz4/Makefile
index ae6b2c0fd091..cb370abf7ec7 100644
--- a/archivers/php-lz4/Makefile
+++ b/archivers/php-lz4/Makefile
@@ -1,6 +1,6 @@
PORTNAME= lz4
DISTVERSION= 0.5.0
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= archivers
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
@@ -21,4 +21,11 @@ GH_PROJECT= php-ext-lz4
CONFIGURE_ARGS= --with-lz4-includedir=${LOCALBASE}
+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}
+
.include <bsd.port.mk>
diff --git a/archivers/php-lz4/pkg-descr b/archivers/php-lz4/pkg-descr
index b13026050001..2d0b57a6d4f2 100644
--- a/archivers/php-lz4/pkg-descr
+++ b/archivers/php-lz4/pkg-descr
@@ -1,3 +1,6 @@
-This is the extension PHP extension for lz4
-a lossless compression algorithm, providing
-hi compression speed and multi-core scalability.
+This is the extension PHP extension for lz4, an extremely fast lossless
+compression algorithm providing high compression speed and multi-core
+scalability.
+
+This extension can also transparently compress objects stored in
+APCu cache. Just set apc.serializer=lz4 in your php.ini.