Files
2026-10-04 04:07:15 +00:00

72 lines
1.9 KiB
Makefile

PORTNAME= rdma-core
PORTVERSION= 66.0
PORTREVISION= 1
CATEGORIES= net sysutils
MAINTAINER= arrowd@FreeBSD.org
COMMENT= Remote Direct Memory Access core userspace libraries and daemons
WWW= https://github.com/linux-rdma/rdma-core
LICENSE= BSD2CLAUSE GPLv2
LICENSE_COMB= dual
LICENSE_FILE_BSD2CLAUSE= ${WRKSRC}/COPYING.BSD_MIT
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.GPL2
BUILD_DEPENDS= linuxapi>=g:devel/linuxapi
LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \
libudev.so:devel/libudev-devd
RUN_DEPENDS= linuxapi>=g:devel/linuxapi
USES= cmake pkgconfig python:env,test${PYVERBS_PYTHON_ARGS} shebangfix
# Use GNU ld to workaround the linker script problem
# ld: error: version script assignment of 'global' to symbol 'fcntl64' failed: symbol not defined
LLD_UNSAFE= yes
USE_GITHUB= yes
GH_ACCOUNT= kostikbel
GH_TAGNAME= fce59a70f606b013e4b01ba2e105212e9ee7e526
CMAKE_ARGS= -DIOCTL_MODE=write
CMAKE_OFF= ENABLE_RESOLVE_NEIGH
SHEBANG_FILES= kernel-boot/rdma_topo \
providers/ipathverbs/truescale-serdes.cmds \
infiniband-diags/scripts/*.pl \
srp_daemon/*.in \
tests/run_tests.py
OPTIONS_DEFINE= DOCS MANPAGES PYVERBS TEST
OPTIONS_DEFAULT= MANPAGES PYVERBS
OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= pandoc:textproc/hs-pandoc \
rst2man:textproc/py-docutils@${PY_FLAVOR}
MANPAGES_CMAKE_BOOL_OFF=NO_MAN_PAGES
PYVERBS_DESC= Enable python bindings
PYVERBS_LIB_DEPENDS= libdrm.so:graphics/libdrm
PYVERBS_VARS= pyverbs_python_args=,build,run
PYVERBS_USE= python=cython
PYVERBS_CMAKE_BOOL_OFF= NO_PYVERBS
TEST_IMPLIES= PYVERBS
post-install:
@${RM} -r ${STAGEDIR}/usr/lib
@${RM} -r ${STAGEDIR}${PREFIX}/etc/init.d
@${RM} -r ${STAGEDIR}${PREFIX}/etc/modprobe.d
@${RM} -r ${STAGEDIR}${PREFIX}/lib/systemd
@${RM} -r ${STAGEDIR}${PREFIX}/lib/udev
do-test-TEST-on:
cd ${WRKSRC} && ${PYTHON_CMD} tests/run_tests.py
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1501000
IGNORE= Requires tdestroy(3) in libc
.endif
.include <bsd.port.post.mk>