PORTNAME= s2n-tls DISTVERSIONPREFIX= v DISTVERSION= 1.3.56 PORTEPOCH= 1 CATEGORIES= security MAINTAINER= eduardo@FreeBSD.org COMMENT= C99 implementation of the TLS/SSL protocols WWW= https://github.com/aws/s2n-tls LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= cmake:testing ssl USE_GITHUB= yes GH_ACCOUNT= aws USE_LDCONFIG= yes CMAKE_OFF= BUILD_TESTING CMAKE_ON= BUILD_SHARED_LIBS SUB_FILES= pkg-message OPTIONS_DEFINE= DOCS EXAMPLES LTO OPTIONS_DEFINE_amd64= ASM OPTIONS_DEFAULT= LTO ASM_DESC= Enable PQ crypto assembly (reqs AVX2 and BMI2 support) ASM_CMAKE_OFF= -DS2N_NO_PQ_ASM=1 LTO_CMAKE_BOOL= S2N_LTO .include .if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386 CMAKE_ON+= S2N_NO_PQ .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/bin/*.c ${STAGEDIR}${EXAMPLESDIR} .include