summaryrefslogtreecommitdiff
path: root/www/phalcon/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/phalcon/Makefile')
-rw-r--r--www/phalcon/Makefile14
1 files changed, 13 insertions, 1 deletions
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>