summaryrefslogtreecommitdiff
path: root/security/seal/Makefile
blob: 94d1da7090bffecc6ea929894830029c295dfc27 (plain) (blame)
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
28
PORTNAME=	seal
DISTVERSION=	4.1.2
CATEGORIES=	security

MAINTAINER=	lwhsu@FreeBSD.org
COMMENT=	Microsoft Simple Encrypted Arithmetic Library
WWW=		https://www.microsoft.com/research/project/microsoft-seal/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake:testing compiler:c++17-lang
USE_GITHUB=	yes
GH_ACCOUNT=	Microsoft
GH_PROJECT=	SEAL
USE_LDCONFIG=	yes

CMAKE_ON=	BUILD_SHARED_LIBS
CMAKE_OFF=	SEAL_USE_MSGSL SEAL_USE_ZLIB SEAL_USE_ZSTD # project clones repositories instead of using exrernal packages, see https://github.com/microsoft/SEAL/issues/329
CMAKE_TESTING_ON=	SEAL_BUILD_TESTS
CMAKE_TESTING_TARGET=	gtest

PLIST_SUB+=	VERSION=${DISTVERSION} VER=${DISTVERSION:R}

post-test: # run tests
	@cd ${BUILD_WRKSRC} && bin/sealtest

.include <bsd.port.mk>