View | Details | Raw Unified | Return to bug 266397 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/s2n/Makefile (-7 / +14 lines)
Lines 1-6 Link Here
1
PORTNAME=	s2n
1
PORTNAME=	s2n
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	1.3.20
3
DISTVERSION=	1.3.20
4
PORTREVISION=	1
4
PORTEPOCH=	1
5
PORTEPOCH=	1
5
CATEGORIES=	security
6
CATEGORIES=	security
6
7
Lines 9-37 COMMENT= C99 implementation of the TLS/SSL protocols Link Here
9
WWW=		https://github.com/aws/s2n-tls
10
WWW=		https://github.com/aws/s2n-tls
10
11
11
LICENSE=	APACHE20
12
LICENSE=	APACHE20
13
LICENSE_FILE=	${WRKSRC}/LICENSE
12
14
13
USES=		cmake ssl
15
USES=		cmake:testing ssl
14
16
15
USE_GITHUB=	yes
17
USE_GITHUB=	yes
16
GH_ACCOUNT=	aws
18
GH_ACCOUNT=	aws
17
GH_PROJECT=	s2n-tls
19
GH_PROJECT=	s2n-tls
18
20
19
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
20
CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
22
CMAKE_OFF=	BUILD_TESTING
23
CMAKE_ON=	BUILD_SHARED_LIBS
21
24
22
SUB_FILES=	pkg-message
25
SUB_FILES=	pkg-message
23
26
24
OPTIONS_DEFINE=	DOCS EXAMPLES TEST
27
OPTIONS_DEFINE=	DOCS EXAMPLES LTO
28
OPTIONS_DEFINE_amd64=	ASM
29
OPTIONS_DEFAULT=	LTO
30
31
ASM_DESC=	Enable PQ crypto assembly (reqs AVX2 and BMI2 support)
32
33
ASM_CMAKE_OFF=	-DS2N_NO_PQ_ASM=1
34
LTO_CMAKE_BOOL=	S2N_LTO
25
35
26
.include <bsd.port.options.mk>
36
.include <bsd.port.options.mk>
27
37
28
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386
38
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386
29
CMAKE_ARGS+=	-DS2N_NO_PQ:BOOL=ON
39
CMAKE_ON+=	S2N_NO_PQ
30
.endif
40
.endif
31
41
32
post-build-TEST-on:
33
	(cd ${WRKDIR}/.build && ninja test)
34
35
post-install:
42
post-install:
36
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
43
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
37
	${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
44
	${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}

Return to bug 266397