PORTNAME= s2n-tls DISTVERSIONPREFIX= v DISTVERSION= 1.5.4 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 PORTDOCS= *.md doxygen examples images usage-guide PORTEXAMPLES= Makefile *.c 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 do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}) do-install-EXAMPLES-on: @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} (cd ${WRKSRC}/bin && ${COPYTREE_SHARE} "${PORTEXAMPLES}" ${STAGEDIR}${EXAMPLESDIR}) .include