git: b991c47b81aa - main - www/phalcon: Fix build with php85

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

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

commit b991c47b81aab1f511862c609296b0323656e954
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-01 23:49:45 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:45:56 +0000

    www/phalcon: Fix build with php85
    
    Approved by:    portmgr (blanket)
---
 www/phalcon/Makefile | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/www/phalcon/Makefile b/www/phalcon/Makefile
index df7e308e6665..d242a733b106 100644
--- a/www/phalcon/Makefile
+++ b/www/phalcon/Makefile
@@ -19,4 +19,16 @@ CONFIGURE_ARGS=	--enable-phalcon
 
 WRKSRC_SUBDIR=	build/phalcon
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PHP_VER} >= 85
+.  if ${OPSYS} == FreeBSD
+CFLAGS+=	-Wno-error=int-conversion
+.  endif
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \
+		${WRKSRC}/phalcon.zep.c
+.endif
+
+.include <bsd.port.post.mk>