summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-09 02:17:04 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-09-09 02:37:03 +0800
commit5da8249a8e118bc16ff3b2839e4d1302d0d31df3 (patch)
tree063121d2dbb99491e2e3f2d0f999d392f6b3981e
parentsysutils/parallel: Update to 20240822 (diff)
textproc/libwbxml: Add make test
-rw-r--r--textproc/libwbxml/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/textproc/libwbxml/Makefile b/textproc/libwbxml/Makefile
index 8d1a60ea035f..a34fe629b831 100644
--- a/textproc/libwbxml/Makefile
+++ b/textproc/libwbxml/Makefile
@@ -12,8 +12,10 @@ LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2
+TEST_DEPENDS= check>=0:devel/check
-USES= cmake iconv pkgconfig
+USES= cmake:testing iconv perl5 pkgconfig
+USE_PERL5= test
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR=${PREFIX}/lib \
-DLIBDATA_INSTALL_DIR=${PREFIX}/libdata
@@ -38,6 +40,7 @@ CMAKE_ON= BUILD_SHARED_LIBS \
WBXML_SUPPORT_WML \
WBXML_SUPPORT_WTA \
WBXML_SUPPORT_WV
+CMAKE_TESTING_ON= ENABLE_UNIT_TEST
USE_LDCONFIG= yes
USE_GITHUB= yes