summaryrefslogtreecommitdiff
path: root/mail/pecl-mailparse/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/pecl-mailparse/Makefile')
-rw-r--r--mail/pecl-mailparse/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/pecl-mailparse/Makefile b/mail/pecl-mailparse/Makefile
index 4532555b394a..609dc326ecfa 100644
--- a/mail/pecl-mailparse/Makefile
+++ b/mail/pecl-mailparse/Makefile
@@ -1,5 +1,5 @@
PORTNAME= mailparse
-PORTVERSION= 3.1.8
+DISTVERSION= 3.1.8
CATEGORIES= mail www
MAINTAINER= dbaio@FreeBSD.org
@@ -12,4 +12,14 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= php:pecl
USE_PHP= mbstring:build
-.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}/php_mailparse_mime.h \
+ ${WRKSRC}/php_mailparse_rfc822.c \
+ ${WRKSRC}/php_mailparse_rfc822.re
+.endif
+
+.include <bsd.port.post.mk>