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 @@ -1,28 +1,34 @@ PORTNAME= brotli DISTVERSION= 0.13.1 CATEGORIES= archivers PKGNAMEPREFIX= ${PHP_PKGNAMEPREFIX} MAINTAINER= daniel@shafer.cc COMMENT= Brotli extension for PHP WWW= https://github.com/kjdev/php-ext-brotli LICENSE= MIT BUILD_DEPENDS= re2c>0:devel/re2c LIB_DEPENDS= libbrotlienc.so:archivers/brotli USES= dos2unix libtool php:ext pkgconfig USE_GITHUB= yes GH_ACCOUNT= kjdev GH_PROJECT= php-ext-brotli USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-libbrotli PHP_MODNAME= brotli -.include +.include +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