git: beb77dfe0d04 - main - devel/aws-c-sdkutils: Port improvements

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

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

commit beb77dfe0d049f938b29ee881a6b1b0c38d4d658
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 17:43:30 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 20:24:46 +0000

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

diff --git a/devel/aws-c-sdkutils/Makefile b/devel/aws-c-sdkutils/Makefile
index 757d766f8de2..94ced6524abb 100644
--- a/devel/aws-c-sdkutils/Makefile
+++ b/devel/aws-c-sdkutils/Makefile
@@ -8,19 +8,20 @@ COMMENT=	AWS SDK C utilities
 WWW=		https://github.com/awslabs/aws-c-sdkutils
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libaws-c-common.so:devel/aws-c-common
 
-USES=		cmake compiler:c11
+USES=		cmake:testing compiler:c11
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	awslabs
 
 USE_LDCONFIG=	yes
 
-CMAKE_ARGS+=	-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_TESTING
 
 PORTSCOUT=	limit:^d\.d\.