git: 1203587072ee - main - devel/aws-checksums: Port improvements

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

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

commit 1203587072ee907f1ee1ede13a2701b1218a8305
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 23:57:11 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 23:59:02 +0000

    devel/aws-checksums: Port improvements
    
     - Define LICENSE_FILE
     - Use ports framework for unit testing
     - Use CMake helpers provided by framework
     - Turn off BUILD_TESTING by default
     - Bump PORTREVISION
---
 devel/aws-checksums/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/devel/aws-checksums/Makefile b/devel/aws-checksums/Makefile
index 1cd62607d342..f24d38f94a2d 100644
--- a/devel/aws-checksums/Makefile
+++ b/devel/aws-checksums/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	aws-checksums
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.1.13
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel
 
@@ -9,18 +10,20 @@ COMMENT=	Cross-Platform HW accelerated CRC32c and CRC32
 WWW=		https://github.com/awslabs/aws-checksums
 
 LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
 LIB_DEPENDS=	libaws-c-common.so:devel/aws-c-common
 
-USES=		cmake
+USES=		cmake:testing
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	awslabs
 
 USE_LDCONFIG=	yes
 
-CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON \
-		-DCMAKE_INSTALL_LIBDIR=${LOCALBASE}/lib
+CMAKE_ARGS+=	-DCMAKE_INSTALL_LIBDIR=${LOCALBASE}/lib
+CMAKE_ON=	BUILD_SHARED_LIBS
+CMAKE_OFF=	BUILD_TESTING
 
 .include <bsd.port.pre.mk>