Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Feb 2020 22:47:13 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r526861 - in head/security/nflib: . files
Message-ID:  <202002222247.01MMlDev009056@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Feb 22 22:47:13 2020
New Revision: 526861
URL: https://svnweb.freebsd.org/changeset/ports/526861

Log:
  security/nflib: Turn on the internal optimization option NFL_OPTIMIZED; Eliminate testcases from the 'build' target

Added:
  head/security/nflib/files/
  head/security/nflib/files/patch-CMakeLists.txt   (contents, props changed)
Modified:
  head/security/nflib/Makefile

Modified: head/security/nflib/Makefile
==============================================================================
--- head/security/nflib/Makefile	Sat Feb 22 22:38:42 2020	(r526860)
+++ head/security/nflib/Makefile	Sat Feb 22 22:47:13 2020	(r526861)
@@ -4,6 +4,7 @@ PORTNAME=	nflib
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.0.0-23
 DISTVERSIONSUFFIX=	-g5cf40ed
+PORTREVISION=	1
 CATEGORIES=	security math
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -24,6 +25,12 @@ GH_ACCOUNT=	quarkslab
 GH_PROJECT=	NFLlib
 USE_LDCONFIG=	yes
 
-TEST_TARGET=	test
+CMAKE_ON=	NFL_OPTIMIZED
+
+do-test:
+	@cd ${BUILD_WRKSRC} && \
+		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
+		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
 
 .include <bsd.port.mk>

Added: head/security/nflib/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/nflib/files/patch-CMakeLists.txt	Sat Feb 22 22:47:13 2020	(r526861)
@@ -0,0 +1,9 @@
+--- CMakeLists.txt.orig	2020-02-22 22:31:07 UTC
++++ CMakeLists.txt
+@@ -64,4 +64,6 @@ install(FILES ${NFLLIB_HDRS_3} DESTINATION include/nfl
+ install(FILES ${NFLLIB_HDRS_4} DESTINATION include/nfl/opt/arch)
+ install(FILES ${NFLLIB_PRNG_HDRS} DESTINATION include/nfl/prng)
+ 
++if (BUILD_TESTING)
+ add_subdirectory(tests)
++endif()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002222247.01MMlDev009056>