Skip to content

Commit

Permalink
benchmark-1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fd00 committed Dec 9, 2016
1 parent 06e5c08 commit 43c6eac
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 90 deletions.
43 changes: 23 additions & 20 deletions benchmark/README
Expand Up @@ -3,42 +3,42 @@ benchmark
A library to support the benchmarking of functions, similar to unit-tests.

Runtime requirements:
cygwin-2.5.1-1
libbenchmark-devel-1.0.0-1bl1
libbenchmark0-1.0.0-1bl1
libgcc1-5.3.0-5
libstdc++6-5.3.0-5
pkg-config-0.29-1
cygwin-2.6.0-1
libbenchmark-devel-1.1.0-1bl1
libbenchmark1-1.1.0-1bl1
libgcc1-5.4.0-1
libstdc++6-5.4.0-1
pkg-config-0.29.1-1

Build requirements:
(besides corresponding -devel packages)
binutils-2.25-4
cmake-3.3.2-1
cygport-0.21.1-1
gcc-core-5.3.0-5
gcc-g++-5.3.0-5
make-4.1-1
cmake-3.6.2-1
cygport-0.23.0-1
gcc-core-5.4.0-1
gcc-g++-5.4.0-1
make-4.2.1-1

Canonical website:
https://github.com/google/benchmark

Canonical download:
https://github.com/google/benchmark/archive/v1.0.0.tar.gz
https://github.com/google/benchmark/archive/v1.1.0.tar.gz

-------------------------------------------

Build instructions:
1. unpack benchmark-1.0.0-X-src.tar.xz
1. unpack benchmark-1.1.0-X-src.tar.xz
2. if you use setup to install this src package,
it will be unpacked under /usr/src automatically
% cd /usr/src
% cygport ./benchmark-1.0.0-X.cygport all
% cygport ./benchmark-1.1.0-X.cygport all

This will create:
/usr/src/benchmark-1.0.0-X-src.tar.xz
/usr/src/benchmark-1.0.0-X.tar.xz
/usr/src/libbenchmark0-1.0.0-X.tar.xz
/usr/src/libbenchmark-devel-1.0.0-X.tar.xz
/usr/src/benchmark-1.1.0-X-src.tar.xz
/usr/src/benchmark-1.1.0-X.tar.xz
/usr/src/libbenchmark1-1.1.0-X.tar.xz
/usr/src/libbenchmark-devel-1.1.0-X.tar.xz

-------------------------------------------

Expand All @@ -51,8 +51,8 @@ Files included in the binary package:
/usr/share/doc/benchmark/LICENSE
/usr/share/doc/benchmark/README.md

(libbenchmark0)
/usr/bin/cygbenchmark-0.dll
(libbenchmark1)
/usr/bin/cygbenchmark-1.dll

(libbenchmark-devel)
/usr/include/benchmark/benchmark.h
Expand All @@ -66,5 +66,8 @@ Files included in the binary package:

Port Notes:

----- version 1.1.0-1bl1 -----
Version bump.

----- version 1.0.0-1bl1 -----
Initial release by fd0 <https://github.com/fd00/>
67 changes: 0 additions & 67 deletions benchmark/benchmark-1.0.0-1bl1.src.patch

This file was deleted.

Expand Up @@ -7,6 +7,10 @@ DESCRIPTION="A library to support the benchmarking of functions, similar to unit

inherit cmake

CYGCMAKE_ARGS="
-DBUILD_SHARED_LIBS:BOOL=ON
"

src_test()
{
cd ${B}
Expand All @@ -15,19 +19,19 @@ src_test()

PKG_NAMES="
${PN}
lib${PN}0
lib${PN}1
lib${PN}-devel
"
benchmark_CONTENTS="
usr/share
"
libbenchmark0_CONTENTS="
libbenchmark1_CONTENTS="
usr/bin
"
libbenchmark_devel_CONTENTS="
usr/include
usr/lib
"
benchmark_SUMMARY="${SUMMARY} (licensing & readmes)"
libbenchmark0_SUMMARY="${SUMMARY} (runtime)"
libbenchmark1_SUMMARY="${SUMMARY} (runtime)"
libbenchmark_devel_SUMMARY="${SUMMARY} (development)"
36 changes: 36 additions & 0 deletions benchmark/benchmark-1.1.0-1bl1.src.patch
@@ -0,0 +1,36 @@
--- origsrc/benchmark-1.1.0/CMakeLists.txt 2016-10-29 06:22:22.000000000 +0900
+++ src/benchmark-1.1.0/CMakeLists.txt 2016-12-09 09:37:05.782572400 +0900
@@ -22,6 +22,9 @@ get_git_version(GIT_VERSION)

# Tell the user what versions we are using
string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION})
+if(CYGWIN)
+ set(VERSION "1.1.0")
+endif()
message("-- Version: ${VERSION}")

# The version of the libraries
@@ -177,3 +180,10 @@ if (BENCHMARK_ENABLE_TESTING)
enable_testing()
add_subdirectory(test)
endif()
+
+SET(prefix ${CMAKE_INSTALL_PREFIX})
+SET(exec_prefix ${CMAKE_INSTALL_PREFIX})
+SET(libdir ${CMAKE_INSTALL_PREFIX}/lib)
+SET(includedir ${CMAKE_INSTALL_PREFIX}/include)
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.pc.in ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc @ONLY)
+INSTALL(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/pkgconfig)
--- origsrc/benchmark-1.1.0/benchmark.pc.in 1970-01-01 09:00:00.000000000 +0900
+++ src/benchmark-1.1.0/benchmark.pc.in 2016-12-09 09:41:23.027011100 +0900
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: benchmark
+Description: Microbenchmark support library
+Version: @VERSION@
+Libs: -L${libdir} -lbenchmark
+Cflags: -I${includedir}/benchmark

0 comments on commit 43c6eac

Please sign in to comment.