diff --git a/databases/pecl-memcache/Makefile b/databases/pecl-memcache/Makefile index 4e9a9a40171c..9b32402ee944 100644 --- a/databases/pecl-memcache/Makefile +++ b/databases/pecl-memcache/Makefile @@ -1,25 +1,37 @@ PORTNAME= memcache PORTVERSION= 8.2 CATEGORIES= databases MAINTAINER= sunpoet@FreeBSD.org COMMENT= Memcached extension WWW= https://pecl.php.net/package/memcache \ https://github.com/websupport-sk/pecl-memcache LICENSE= PHP30 LICENSE_FILE= ${WRKSRC}/LICENSE USES= dos2unix php:pecl USE_PHP= session:build zlib:build CONFIGURE_ARGS= --with-zlib-dir=/usr USE_CSTD= gnu89 OPTIONS_DEFINE= EXAMPLES +.include + +post-patch: +.if ${PHP_VER} >= 85 + @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string|Zend/zend_smart_string|' \ + ${WRKSRC}/src/memcache_ascii_protocol.c \ + ${WRKSRC}/src/memcache_binary_protocol.c \ + ${WRKSRC}/src/memcache_session.c \ + ${WRKSRC}/src/memcache_pool.c \ + ${WRKSRC}/src/memcache_pool.h +.endif + post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/ ${INSTALL_DATA} ${WRKSRC}/example.php ${STAGEDIR}${EXAMPLESDIR}/ -.include +.include