summaryrefslogtreecommitdiff
path: root/security/libnitrokey/Makefile
blob: e2b5f7d0e748405b16f74353db38dc88681f5789 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
PORTNAME=	libnitrokey
DISTVERSIONPREFIX=	v
DISTVERSION=	3.7
CATEGORIES=	security
MASTER_SITES=	https://github.com/Nitrokey/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/

MAINTAINER=	monwarez@mailoo.org
COMMENT=	Libnitrokey is a project to communicate with Nitrokey devices
WWW=		https://github.com/Nitrokey/libnitrokey

LICENSE=	LGPL3
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libhidapi.so:comms/hidapi \
		libudev.so:devel/libudev-devd

USES=		cmake compiler:c++14-lang pkgconfig

USE_LDCONFIG=	yes

TEST_TARGET=	test
OPTIONS_DEFINE=	TEST

TEST_BUILD_DEPENDS=	${LOCALBASE}/include/catch2/catch.hpp:devel/catch
TEST_CMAKE_BOOL=	COMPILE_OFFLINE_TESTS

.include <bsd.port.mk>