git: 0e192b129038 - main - converters/pecl-igbinary: Fix build with php85

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 02 Aug 2025 00:46:41 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0e192b129038efc4f5500f1afadef741bb09db9d

commit 0e192b129038efc4f5500f1afadef741bb09db9d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:16:00 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:45:59 +0000

    converters/pecl-igbinary: Fix build with php85
    
    Approved by:    portmgr (blanket)
---
 converters/pecl-igbinary/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/converters/pecl-igbinary/Makefile b/converters/pecl-igbinary/Makefile
index a008161cd662..43c98b61c1bb 100644
--- a/converters/pecl-igbinary/Makefile
+++ b/converters/pecl-igbinary/Makefile
@@ -12,9 +12,15 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		php:pecl
 
+.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}/src/php7/php_igbinary.h
+.endif
 # Install the real header files
 	@${CP} ${WRKSRC}/src/php7/igbinary.h ${WRKSRC}/igbinary.h
 	@${CP} ${WRKSRC}/src/php7/php_igbinary.h ${WRKSRC}/php_igbinary.h
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>