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 @@ -1,28 +1,31 @@ PORTNAME= zlib-ng DISTVERSION= 2.2.4 CATEGORIES= archivers MAINTAINER= vvd@FreeBSD.org COMMENT= Fork of the zlib data compression library 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