From owner-svn-ports-head@freebsd.org Sat Aug 18 16:04:47 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DE4D1070505; Sat, 18 Aug 2018 16:04:47 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C3023966E7; Sat, 18 Aug 2018 16:04:46 +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 A0EF119B38; Sat, 18 Aug 2018 16:04:46 +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 w7IG4k9t064119; Sat, 18 Aug 2018 16:04:46 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7IG4jxw064113; Sat, 18 Aug 2018 16:04:45 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201808181604.w7IG4jxw064113@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 18 Aug 2018 16:04:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477511 - in head/devel: . benchmark benchmark/files X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/devel: . benchmark benchmark/files X-SVN-Commit-Revision: 477511 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Aug 2018 16:04:47 -0000 Author: yuri Date: Sat Aug 18 16:04:45 2018 New Revision: 477511 URL: https://svnweb.freebsd.org/changeset/ports/477511 Log: New port: devel/benchmark: Microbenchmark support library Added: head/devel/benchmark/ head/devel/benchmark/Makefile (contents, props changed) head/devel/benchmark/distinfo (contents, props changed) head/devel/benchmark/files/ head/devel/benchmark/files/patch-src_CMakeLists.txt (contents, props changed) head/devel/benchmark/pkg-descr (contents, props changed) head/devel/benchmark/pkg-plist (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Sat Aug 18 15:32:16 2018 (r477510) +++ head/devel/Makefile Sat Aug 18 16:04:45 2018 (r477511) @@ -196,6 +196,7 @@ SUBDIR += bcpp SUBDIR += bcunit SUBDIR += bear + SUBDIR += benchmark SUBDIR += bennugd-core SUBDIR += bennugd-modules SUBDIR += bglibs Added: head/devel/benchmark/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/benchmark/Makefile Sat Aug 18 16:04:45 2018 (r477511) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= benchmark +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.1-25 +DISTVERSIONSUFFIX= -gaf441fc +CATEGORIES= devel + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Microbenchmark support library + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= cmake:outsource +USE_GITHUB= yes +GH_ACCOUNT= google +USE_LDCONFIG= yes + +CMAKE_OFF= BENCHMARK_ENABLE_TESTING + +CXXFLAGS+= -Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655 +CXXFLAGS+= -Wno-sign-compare # workaround for https://github.com/google/googletest/issues/1752 + +do-test: + @cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBENCHMARK_ENABLE_TESTING=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include Added: head/devel/benchmark/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/benchmark/distinfo Sat Aug 18 16:04:45 2018 (r477511) @@ -0,0 +1,3 @@ +TIMESTAMP = 1534606759 +SHA256 (google-benchmark-v1.4.1-25-gaf441fc_GH0.tar.gz) = 87da8e5803dda1e92c8db7b3bff37e3a79b9e4b0623383ea16ecc63d63a53882 +SIZE (google-benchmark-v1.4.1-25-gaf441fc_GH0.tar.gz) = 131207 Added: head/devel/benchmark/files/patch-src_CMakeLists.txt ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/benchmark/files/patch-src_CMakeLists.txt Sat Aug 18 16:04:45 2018 (r477511) @@ -0,0 +1,20 @@ +--- src/CMakeLists.txt.orig 2018-08-16 16:47:09 UTC ++++ src/CMakeLists.txt +@@ -16,7 +16,7 @@ foreach(item ${BENCHMARK_MAIN}) + list(REMOVE_ITEM SOURCE_FILES "${item}") + endforeach() + +-add_library(benchmark ${SOURCE_FILES}) ++add_library(benchmark SHARED ${SOURCE_FILES}) + set_target_properties(benchmark PROPERTIES + OUTPUT_NAME "benchmark" + VERSION ${GENERIC_LIB_VERSION} +@@ -44,7 +44,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") + endif() + + # Benchmark main library +-add_library(benchmark_main "benchmark_main.cc") ++add_library(benchmark_main SHARED "benchmark_main.cc") + set_target_properties(benchmark_main PROPERTIES + OUTPUT_NAME "benchmark_main" + VERSION ${GENERIC_LIB_VERSION} Added: head/devel/benchmark/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/benchmark/pkg-descr Sat Aug 18 16:04:45 2018 (r477511) @@ -0,0 +1,3 @@ +A library to support the benchmarking of functions, similar to unit-tests. + +WWW: https://github.com/google/benchmark Added: head/devel/benchmark/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/benchmark/pkg-plist Sat Aug 18 16:04:45 2018 (r477511) @@ -0,0 +1,12 @@ +include/benchmark/benchmark.h +lib/cmake/benchmark/benchmarkConfig.cmake +lib/cmake/benchmark/benchmarkConfigVersion.cmake +lib/cmake/benchmark/benchmarkTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/benchmark/benchmarkTargets.cmake +lib/libbenchmark.so +lib/libbenchmark.so.0 +lib/libbenchmark.so.0.0.0 +lib/libbenchmark_main.so +lib/libbenchmark_main.so.0 +lib/libbenchmark_main.so.0.0.0 +libdata/pkgconfig/benchmark.pc