1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00

databases/pecl-memcache: Fix build with php85

Approved by:	portmgr (blanket)
This commit is contained in:
Muhammad Moinur Rahman
2025-08-02 02:18:38 +02:00
parent 0e192b1290
commit 4cc97717e0
+13 -1
View File
@@ -18,8 +18,20 @@ USE_CSTD= gnu89
OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.pre.mk>
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 <bsd.port.mk>
.include <bsd.port.post.mk>