aboutsummaryrefslogtreecommitdiff
path: root/archivers/php-zstd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/php-zstd/Makefile')
-rw-r--r--archivers/php-zstd/Makefile18
1 files changed, 9 insertions, 9 deletions
diff --git a/archivers/php-zstd/Makefile b/archivers/php-zstd/Makefile
index 1e12b8a19503..9349a9bfb39d 100644
--- a/archivers/php-zstd/Makefile
+++ b/archivers/php-zstd/Makefile
@@ -1,9 +1,10 @@
PORTNAME= zstd
-DISTVERSION= 0.14.0
+DISTVERSION= 0.15.2
+PORTREVISION= 1
CATEGORIES= archivers
PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX}
-MAINTAINER= pave@FreeBSD.org
+MAINTAINER= pkaipila@gmail.com
COMMENT= Zstandard extension for PHP
WWW= https://github.com/kjdev/php-ext-zstd
@@ -20,12 +21,11 @@ GH_PROJECT= php-ext-zstd
CONFIGURE_ARGS= --with-libzstd
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= APCU
+OPTIONS_DEFAULT= APCU
-post-patch:
-.if ${PHP_VER} >= 85
- @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \
- ${WRKSRC}/zstd.c
-.endif
+APCU_DESC= APCu cache compression support for objects
-.include <bsd.port.post.mk>
+APCU_BUILD_DEPENDS= ${LOCALBASE}/include/php/ext/apcu/apc_serializer.h:devel/pecl-APCu@${PHP_FLAVOR}
+
+.include <bsd.port.mk>