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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user