git: 47dcf37430a3 - main - archivers/php-zstd: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:40 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=47dcf37430a38fe00eaaaf1ea00f50418de8e988
commit 47dcf37430a38fe00eaaaf1ea00f50418de8e988
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:11:39 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:45:58 +0000
archivers/php-zstd: Fix build with php85
Approved by: portmgr (blanket)
---
archivers/php-zstd/Makefile | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/archivers/php-zstd/Makefile b/archivers/php-zstd/Makefile
index 30664e67a282..1e12b8a19503 100644
--- a/archivers/php-zstd/Makefile
+++ b/archivers/php-zstd/Makefile
@@ -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>