PORTNAME=	rshim-user-space
DISTVERSIONPREFIX=	rshim-
DISTVERSION=		2.0.9
PORTREVISION=	1
PORTEPOCH=		1

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Userspace daemon for the Mellanox BlueField SoC
WWW=		https://github.com/Mellanox/rshim-user-space/

LICENSE=	BSD3CLAUSE

CATEGORIES=	sysutils

LIB_DEPENDS=	libepoll-shim-interpose.so:devel/libepoll-shim \
		libpci.so:devel/libpci \
		libpciaccess.so:devel/libpciaccess

USES=		autoreconf compiler:c11 localbase gmake pkgconfig tar:bzip2

USE_GITHUB=	yes
GH_ACCOUNT=	Mellanox

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share

.include <bsd.port.options.mk>

.if ${OPSYS} != FreeBSD || !exists(/usr/lib/libcuse.so)
IGNORE=		not supported on this operating system combination
.endif

.include <bsd.port.mk>
