summaryrefslogtreecommitdiff
path: root/archivers/php-brotli/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/php-brotli/Makefile')
-rw-r--r--archivers/php-brotli/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/archivers/php-brotli/Makefile b/archivers/php-brotli/Makefile
index a86e70d46e52..dedbbbde7b37 100644
--- a/archivers/php-brotli/Makefile
+++ b/archivers/php-brotli/Makefile
@@ -25,4 +25,10 @@ CONFIGURE_ARGS= --with-libbrotli
PHP_MODNAME= brotli
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+post-patch:
+.if ${PHP_VER} >= 85
+ @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string.h|Zend/zend_smart_string.h|' \
+ ${WRKSRC}/brotli.c
+.endif
+.include <bsd.port.post.mk>