Commit 6a101686 authored by yuri's avatar yuri
Browse files

New port: devel/benchmark: Microbenchmark support library

parent 77049ba8
......@@ -196,6 +196,7 @@
SUBDIR += bcpp
SUBDIR += bcunit
SUBDIR += bear
SUBDIR += benchmark
SUBDIR += bennugd-core
SUBDIR += bennugd-modules
SUBDIR += bglibs
......
# $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>
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
--- 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}
A library to support the benchmarking of functions, similar to unit-tests.
WWW: https://github.com/google/benchmark
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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment