git: ef6447f8312e - main - archivers/pecl-zstd: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:37 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ef6447f8312e4b31065de5bcab3df865cc6a2529
commit ef6447f8312e4b31065de5bcab3df865cc6a2529
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-01 23:54:43 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:45:56 +0000
archivers/pecl-zstd: Fix build with php85
Approved by: portmgr (blanket)
---
archivers/pecl-zstd/Makefile | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/archivers/pecl-zstd/Makefile b/archivers/pecl-zstd/Makefile
index 055445f91d60..33c5604734e7 100644
--- a/archivers/pecl-zstd/Makefile
+++ b/archivers/pecl-zstd/Makefile
@@ -16,8 +16,14 @@ USES= php:pecl pkgconfig
CONFIGURE_ARGS= --with-libzstd
+.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
# Clean up bundled libraries
@${RM} -r ${WRKSRC}/zstd/
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>