diff --git a/www/phalcon/Makefile b/www/phalcon/Makefile index df7e308e6665..d242a733b106 100644 --- a/www/phalcon/Makefile +++ b/www/phalcon/Makefile @@ -1,22 +1,34 @@ PORTNAME= phalcon DISTVERSIONPREFIX= v DISTVERSION= 5.9.3 CATEGORIES= www PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} MAINTAINER= franco@opnsense.org COMMENT= Phalcon PHP Framework written in C-language WWW= https://phalcon.io/ LICENSE= BSD3CLAUSE USES= localbase php:ext USE_GITHUB= yes GH_PROJECT= c${PORTNAME} USE_PHP= mbstring pdo:build session:build CONFIGURE_ARGS= --enable-phalcon WRKSRC_SUBDIR= build/phalcon -.include +.include + +.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