From owner-svn-ports-all@freebsd.org Sat Feb 22 22:47:14 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9042924F5F3; Sat, 22 Feb 2020 22:47:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Q3Ny21nYz3yb5; Sat, 22 Feb 2020 22:47:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 143B32AF3; Sat, 22 Feb 2020 22:47:14 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 01MMlDhx009058; Sat, 22 Feb 2020 22:47:13 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 01MMlDev009056; Sat, 22 Feb 2020 22:47:13 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <202002222247.01MMlDev009056@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 22 Feb 2020 22:47:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r526861 - in head/security/nflib: . files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/security/nflib: . files X-SVN-Commit-Revision: 526861 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2020 22:47:14 -0000 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 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()