PORTNAME=	aws-lc
PORTVERSION=	1.73.0
DISTVERSIONPREFIX=	v
CATEGORIES=	security

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	AWS libcrypto
WWW=		https://github.com/aws/aws-lc

# It is actually (APACHE20 or ISCL) and BSD3CLAUSE and MIT and OpenSSL
LICENSE=	APACHE20 BSD3CLAUSE ISCL MIT OpenSSL
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		cmake

CMAKE_OFF=	BUILD_TESTING \
		DISABLE_CPU_JITTER_ENTROPY \
		ENABLE_DATA_INDEPENDENT_TIMING \
		ENABLE_DILITHIUM \
		ENABLE_FIPS_ENTROPY_CPU_JITTER \
		ENABLE_SOURCE_MODIFICATION \
		GENERATE_RUST_BINDINGS \
		MY_ASSEMBLER_IS_TOO_OLD_FOR_512AVX \
		MY_ASSEMBLER_IS_TOO_OLD_FOR_AVX
CMAKE_ON=	BUILD_LIBSSL \
		BUILD_SHARED_LIBS \
		BUILD_TOOL \
		DISABLE_GO \
		DISABLE_PERL \
		ENABLE_DIST_PKG \
		ENABLE_DIST_PKG_OPENSSL_SHIM

PLIST_SUB=	PORTVERSION=${PORTVERSION}

USE_GITHUB=	yes
GH_ACCOUNT=	aws

CONFLICTS_INSTALL=	boringssl libressl* openssl*

PORTSCOUT=	limit:^[0-9]*\.

.include <bsd.port.mk>
