git: 3750cd53c25c - main - textproc/pecl-yaml: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:38 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=3750cd53c25cbfae23e48dea12ffd51c4dfe7363
commit 3750cd53c25cbfae23e48dea12ffd51c4dfe7363
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:03:55 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:45:57 +0000
textproc/pecl-yaml: Fix build with php85
- Switch to DISTVERSION while I am here
Approved by: portmgr (blanket)
---
textproc/pecl-yaml/Makefile | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/textproc/pecl-yaml/Makefile b/textproc/pecl-yaml/Makefile
index 957bf82dbd98..92419ba58a6b 100644
--- a/textproc/pecl-yaml/Makefile
+++ b/textproc/pecl-yaml/Makefile
@@ -1,5 +1,5 @@
PORTNAME= yaml
-PORTVERSION= 2.2.4
+DISTVERSION= 2.2.4
CATEGORIES= textproc pear
MAINTAINER= dbaio@FreeBSD.org
@@ -13,4 +13,10 @@ LIB_DEPENDS= libyaml.so:textproc/libyaml
USES= php:pecl
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+post-patch:
+.if ${PHP_VER} >= 85
+ @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string.h|Zend/zend_smart_string.h|' \
+ ${WRKSRC}/php_yaml.h
+.endif
+.include <bsd.port.post.mk>