git: 300337f69391 - main - devel/aws-c-http: Port improvements
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 15 Sep 2022 20:24:59 UTC
The branch main has been updated by eduardo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=300337f69391e25770b08695bcc215e7828876b3
commit 300337f69391e25770b08695bcc215e7828876b3
Author: Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2022-09-15 15:47:04 +0000
Commit: Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2022-09-15 20:24:45 +0000
devel/aws-c-http: Port improvements
- Define LICENSE_FILE
- Use ports framework for unit testing
- Use CMake helpers provided by framework
- Not bumping PORTREVISION
---
devel/aws-c-http/Makefile | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/devel/aws-c-http/Makefile b/devel/aws-c-http/Makefile
index 683f59f63990..b56bb2df343f 100644
--- a/devel/aws-c-http/Makefile
+++ b/devel/aws-c-http/Makefile
@@ -9,6 +9,7 @@ COMMENT= C99 implementation of the HTTP/1.1 and HTTP/2 specifications
WWW= https://github.com/awslabs/aws-c-http
LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libaws-c-cal.so:security/aws-c-cal \
libaws-c-common.so:devel/aws-c-common \
@@ -16,15 +17,15 @@ LIB_DEPENDS= libaws-c-cal.so:security/aws-c-cal \
libaws-c-io.so:devel/aws-c-io \
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_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
.include <bsd.port.mk>