git: b32e2fca4167 - main - graphics/pecl-imagick: Fix build with php85

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

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

commit b32e2fca4167963b8ac86b78c61a2ae8be212a58
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:33:05 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:05 +0000

    graphics/pecl-imagick: Fix build with php85
    
    - Switch to DISTVERSION while I am here
    
    Approved by:    portmgr (blanket)
---
 graphics/pecl-imagick/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/graphics/pecl-imagick/Makefile b/graphics/pecl-imagick/Makefile
index 3c5c2de6711f..d56cc88050ea 100644
--- a/graphics/pecl-imagick/Makefile
+++ b/graphics/pecl-imagick/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	imagick
-PORTVERSION=	3.8.0
+DISTVERSION=	3.8.0
 CATEGORIES=	graphics
 
 MAINTAINER=	000.fbsd@quip.cz
@@ -14,4 +14,12 @@ CPE_VENDOR=	php
 
 CONFIGURE_ARGS=	--with-imagick=${LOCALBASE}
 
-.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}/imagick.c
+.endif
+
+.include <bsd.port.post.mk>