git: 80aa267d01f0 - main - devel/aws-c-compression: port improvements

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

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

commit 80aa267d01f0b893d4ae19b545404bb122971ac0
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 15:33:02 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 20:24:45 +0000

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

diff --git a/devel/aws-c-compression/Makefile b/devel/aws-c-compression/Makefile
index ac02992d3459..36dff89a5686 100644
--- a/devel/aws-c-compression/Makefile
+++ b/devel/aws-c-compression/Makefile
@@ -8,18 +8,19 @@ COMMENT=	C99 implementation of compression algorithms
 WWW=		https://github.com/awslabs/aws-c-compression
 
 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
+CNAKE_OFF=	BUILD_TESTING
 
 .include <bsd.port.mk>