aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2024-02-22 17:21:37 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2024-02-22 17:21:37 +0000
commite86f4ac9642148525a2b4356dc211526226acdd5 (patch)
tree29404f083abaf83cfbb22c983eac7a12c338ba1c
parenta458ab9ef04ceda7193fa21997f431a875b3d4e0 (diff)
archivers/zlib-ng: fix build with TEST option
PR: 277098 Approved by: maintainer
-rw-r--r--archivers/zlib-ng/Makefile6
1 files 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}