git: 18d66e2f3d97 - main - archivers/zlib-ng: Transfrom option TEST to support of "make test"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 May 2025 14:15:05 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=18d66e2f3d9741d4aaceba7560a2b96f105c56e4
commit 18d66e2f3d9741d4aaceba7560a2b96f105c56e4
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2025-05-03 14:11:44 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2025-05-03 14:11:44 +0000
archivers/zlib-ng: Transfrom option TEST to support of "make test"
PR: 285597
---
archivers/zlib-ng/Makefile | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/archivers/zlib-ng/Makefile b/archivers/zlib-ng/Makefile
index f814ddc80e40..d143b4558d15 100644
--- a/archivers/zlib-ng/Makefile
+++ b/archivers/zlib-ng/Makefile
@@ -9,20 +9,23 @@ WWW= https://github.com/zlib-ng/zlib-ng/
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-USES= cmake:${TESTING} compiler:c11
+TEST_DEPENDS= googletest>=0:devel/googletest
+
+USES= cmake:testing compiler:c11
USE_GITHUB= yes
USE_LDCONFIG= yes
+CMAKE_OFF= ZLIB_ENABLE_TESTS ZLIBNG_ENABLE_TESTS
+CMAKE_TESTING_ON= ZLIB_ENABLE_TESTS ZLIBNG_ENABLE_TESTS
+
+# error: use of undeclared identifier 'isascii'
+CFLAGS+= -D__XSI_VISIBLE
+
PLIST_SUB= SHLIB_VER=${DISTVERSION}
-OPTIONS_DEFINE= SIMD TEST
+OPTIONS_DEFINE= SIMD
OPTIONS_DEFAULT= SIMD
SIMD_CMAKE_BOOL= WITH_OPTIM
-TEST_BUILD_DEPENDS= googletest>=0:devel/googletest
-TEST_CMAKE_BOOL= ZLIB_ENABLE_TESTS ZLIBNG_ENABLE_TESTS
-# error: use of undeclared identifier 'isascii'
-TEST_CFLAGS= -D__XSI_VISIBLE
-TEST_VARS= TESTING=testing
.include <bsd.port.mk>