archivers/php-zstd: Fix build with php85

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman
2025-08-02 02:11:39 +02:00
parent e0ee8b09bc
commit 47dcf37430

View File

@@ -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>