Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2025 00:46:38 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3750cd53c25c - main - textproc/pecl-yaml: Fix build with php85
Message-ID:  <202508020046.5720kcKs023434@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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>


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508020046.5720kcKs023434>