Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Aug 2018 16:04:45 +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: r477511 - in head/devel: . benchmark benchmark/files
Message-ID:  <201808181604.w7IG4jxw064113@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>

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



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