diff --git a/archivers/php-zstd/Makefile b/archivers/php-zstd/Makefile index 39a5238de729..9349a9bfb39d 100644 --- a/archivers/php-zstd/Makefile +++ b/archivers/php-zstd/Makefile @@ -1,23 +1,31 @@ PORTNAME= zstd DISTVERSION= 0.15.2 +PORTREVISION= 1 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} MAINTAINER= pkaipila@gmail.com COMMENT= Zstandard extension for PHP WWW= https://github.com/kjdev/php-ext-zstd LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libzstd.so:archivers/zstd USES= php:ext pkgconfig USE_GITHUB= yes GH_ACCOUNT= kjdev GH_PROJECT= php-ext-zstd CONFIGURE_ARGS= --with-libzstd +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 diff --git a/archivers/php-zstd/pkg-descr b/archivers/php-zstd/pkg-descr index 0e9a065b0d55..a11bd28736bd 100644 --- a/archivers/php-zstd/pkg-descr +++ b/archivers/php-zstd/pkg-descr @@ -1,2 +1,6 @@ -This is the PHP extension for zstandard, -or zstd a fast lossless compression algorithm. +This is the PHP extension for zstandard or zstd, a fast lossless +compression algorithm with competitive compression ratios and +multi-core scalability. + +This extension can also transparently compress objects stored in +APCu cache. Just set apc.serializer=zstd in your php.ini.