diff --git a/net/libfabric/Makefile b/net/libfabric/Makefile index 051713e90c52..1a578fd6e69a 100644 --- a/net/libfabric/Makefile +++ b/net/libfabric/Makefile @@ -1,63 +1,67 @@ PORTNAME= libfabric DISTVERSION= 1.15.1 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= https://github.com/ofiwg/${PORTNAME}/releases/download/v${DISTVERSION}/ MAINTAINER= yuri@FreeBSD.org COMMENT= Open Fabric Interfaces WWW= https://ofiwg.github.io/libfabric/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim USES= gmake libtool pkgconfig tar:bz2 USE_LDCONFIG= yes GNU_CONFIGURE= yes GNU_CONFIGURE_MANPREFIX=${PREFIX}/share CONFIGURE_ARGS= --disable-static CONFIGURE_SHELL= ${LOCALBASE}/bin/bash # workaround for https://github.com/ofiwg/libfabric/issues/7901 CFLAGS+= -I${LOCALBASE}/include/libepoll-shim LDFLAGS+= -L${LOCALBASE}/lib -lepoll-shim INSTALL_TARGET= install-strip OPTIONS_MULTI= PROVIDERS OPTIONS_MULTI_PROVIDERS= RXD RXM SOCKETS TCP UDP OPTIONS_DEFAULT= ${OPTIONS_MULTI_PROVIDERS} OPTIONS_SUB= yes PROVIDERS_DESC= Providers to build: -OPTIONS_MULTI_PROVIDERS+= VERBS -VERBS_PLIST_FILES= share/man/man7/fi_verbs.7.gz - .for p in ${OPTIONS_MULTI_PROVIDERS} ${p}_DESC= '${p:tl}' provider ${p}_CONFIGURE_ENABLE= ${p:tl} .endfor +.include + +.if ! ( ${ARCH} == armv7 && ${OSREL:R} >= 14 ) +OPTIONS_MULTI_PROVIDERS+= VERBS +VERBS_PLIST_FILES= share/man/man7/fi_verbs.7.gz +.endif + SED_WRAP_CLOSE= { \ i\\\n \ \#ifdef SHIM_SYS_SHIM_HELPERS\\\n \ \#undef close\\\n \ \#endif\n \ a\\\n \ \#ifdef SHIM_SYS_SHIM_HELPERS\\\n \ \#define close epoll_shim_close\\\n \ \#endif\n \ } post-patch: @${FIND} ${WRKSRC} -name "*.[ch]" -and -exec ${GREP} -q '' {} \; -print | ${XARGS} ${REINPLACE_CMD} 's|||' @${FIND} ${WRKSRC} -name "*.[ch]" -and -exec ${GREP} -q '' {} \; -print | ${XARGS} ${REINPLACE_CMD} 's|||' @${FIND} ${WRKSRC} -name "*.[ch]" -and -exec ${GREP} -q '' {} \; -print | ${XARGS} ${REINPLACE_CMD} 's|||' @${GREP} -Flr --include='*.c' '.close' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} $$'/\\.close/${SED_WRAP_CLOSE}' @${REINPLACE_CMD} $$'/fi_ops.*close/${SED_WRAP_CLOSE}' ${WRKSRC}/src/fabric.c @${REINPLACE_CMD} $$'/[*>]close/${SED_WRAP_CLOSE}' ${WRKSRC}/include/rdma/fabric.h .include