git: 56fea307cc8b - main - devel/aws-crt-cpp: Port improvements

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Thu, 15 Sep 2022 23:59:16 UTC
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=56fea307cc8bc30316a26d49ff310b1df6bae826

commit 56fea307cc8bc30316a26d49ff310b1df6bae826
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 23:14:04 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 23:59:01 +0000

    devel/aws-crt-cpp: Port improvements
    
     - Define LICENSE_FILE
     - Use ports framework for unit testing
     - Use CMake helpers provided by framework
     - Not bumping PORTREVISION
---
 devel/aws-crt-cpp/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/devel/aws-crt-cpp/Makefile b/devel/aws-crt-cpp/Makefile
index 2392b3513bdb..1be42577a5d5 100644
--- a/devel/aws-crt-cpp/Makefile
+++ b/devel/aws-crt-cpp/Makefile
@@ -9,6 +9,7 @@ COMMENT=	C++ wrapper around the aws-c libraries
 WWW=		https://github.com/awslabs/aws-crt-cpp
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libaws-c-auth.so:security/aws-c-auth \
 		libaws-c-cal.so:security/aws-c-cal \
@@ -23,16 +24,15 @@ LIB_DEPENDS=	libaws-c-auth.so:security/aws-c-auth \
 		libaws-checksums.so:devel/aws-checksums \
 		libs2n.so:security/s2n-tls
 
-USES=		cmake compiler:c11 ssl
+USES=		cmake:testing compiler:c11 ssl
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	awslabs
 
 USE_LDCONFIG=	yes
 
-CMAKE_ARGS+=	-DBUILD_DEPS=OFF \
-		-DBUILD_SHARED_LIBS=ON \
-		-DBUILD_TESTING=OFF \
-		-DCMAKE_PREFIX_PATH=${LOCALBASE}
+CMAKE_ARGS+=	-DCMAKE_PREFIX_PATH=${LOCALBASE}
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_OFF=	BUILD_DEPS BUILD_TESTING
 
 .include <bsd.port.mk>