Lines 1-6
Link Here
|
1 |
PORTNAME= s2n |
1 |
PORTNAME= s2n-tls |
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 |
|
|
18 |
|
19 |
|
19 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
20 |
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON |
21 |
CMAKE_OFF= BUILD_TESTING |
|
|
22 |
CMAKE_ON= BUILD_SHARED_LIBS |
21 |
|
23 |
|
22 |
SUB_FILES= pkg-message |
24 |
SUB_FILES= pkg-message |
23 |
|
25 |
|
24 |
OPTIONS_DEFINE= DOCS EXAMPLES TEST |
26 |
OPTIONS_DEFINE= DOCS EXAMPLES LTO |
|
|
27 |
OPTIONS_DEFINE_amd64= ASM |
28 |
OPTIONS_DEFAULT= LTO |
29 |
|
30 |
ASM_DESC= Enable PQ crypto assembly (reqs AVX2 and BMI2 support) |
31 |
|
32 |
ASM_CMAKE_OFF= -DS2N_NO_PQ_ASM=1 |
33 |
LTO_CMAKE_BOOL= S2N_LTO |
25 |
|
34 |
|
26 |
.include <bsd.port.options.mk> |
35 |
.include <bsd.port.options.mk> |
27 |
|
36 |
|
28 |
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 |
37 |
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 |
29 |
CMAKE_ARGS+= -DS2N_NO_PQ:BOOL=ON |
38 |
CMAKE_ON+= S2N_NO_PQ |
30 |
.endif |
39 |
.endif |
31 |
|
40 |
|
32 |
post-build-TEST-on: |
|
|
33 |
(cd ${WRKDIR}/.build && ninja test) |
34 |
|
35 |
post-install: |
41 |
post-install: |
36 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
42 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
37 |
${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} |
43 |
${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} |