git: e86f4ac96421 - main - archivers/zlib-ng: fix build with TEST option
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Feb 2024 17:22:19 UTC
The branch main has been updated by makc:
URL: https://cgit.FreeBSD.org/ports/commit/?id=e86f4ac9642148525a2b4356dc211526226acdd5
commit e86f4ac9642148525a2b4356dc211526226acdd5
Author: Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2024-02-22 17:21:37 +0000
Commit: Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2024-02-22 17:21:37 +0000
archivers/zlib-ng: fix build with TEST option
PR: 277098
Approved by: maintainer
---
archivers/zlib-ng/Makefile | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/archivers/zlib-ng/Makefile b/archivers/zlib-ng/Makefile
index 7381f615a448..d10a587b2a85 100644
--- a/archivers/zlib-ng/Makefile
+++ b/archivers/zlib-ng/Makefile
@@ -8,7 +8,7 @@ WWW= https://github.com/zlib-ng/zlib-ng
LICENSE= ZLIB
-USES= cmake compiler:c11
+USES= cmake:${TESTING} compiler:c11
USE_LDCONFIG= yes
USE_GITHUB= yes
@@ -16,8 +16,10 @@ OPTIONS_DEFINE= SIMD TEST
SIMD_CMAKE_BOOL= WITH_OPTIM
TEST_BUILD_DEPENDS= googletest>=0:devel/googletest
+TEST_VARS= TESTING=testing
TEST_CMAKE_BOOL= ZLIB_ENABLE_TESTS ZLIBNG_ENABLE_TESTS
-TEST_BROKEN= error: use of undeclared identifier 'isascii'
+# error: use of undeclared identifier 'isascii'
+TEST_CFLAGS= -D__XSI_VISIBLE
PLIST_SUB= SHLIB_VER=${DISTVERSION}