diff options
Diffstat (limited to 'archivers/php-zstd/Makefile')
-rw-r--r-- | archivers/php-zstd/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/archivers/php-zstd/Makefile b/archivers/php-zstd/Makefile index 696d892de8e1..1e12b8a19503 100644 --- a/archivers/php-zstd/Makefile +++ b/archivers/php-zstd/Makefile @@ -1,5 +1,5 @@ PORTNAME= zstd -DISTVERSION= 0.11.0 +DISTVERSION= 0.14.0 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} @@ -20,4 +20,12 @@ GH_PROJECT= php-ext-zstd CONFIGURE_ARGS= --with-libzstd -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +post-patch: +.if ${PHP_VER} >= 85 + @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \ + ${WRKSRC}/zstd.c +.endif + +.include <bsd.port.post.mk> |