mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
Issue in powerpc-specific code: In file included from /wrkdirs/usr/ports/devel/benchmark/work/benchmark-1.9.0/src/sysinfo.cc:78: /wrkdirs/usr/ports/devel/benchmark/work/benchmark-1.9.0/src/cycleclock.h:99:10: error: implicit conversion changes signedness: 'int32_t' (aka 'int') to 'uint32_t' (aka 'unsigned int') [-Werror,-Wsign-conversion] 99 | tbl &= -static_cast<int32_t>(tbu0 == tbu1); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /wrkdirs/usr/ports/devel/benchmark/work/benchmark-1.9.0/src/cycleclock.h:101:46: error: implicit conversion changes signedness: 'uint64_t' (aka 'unsigned long long') to 'int64_t' (aka 'long long') [-Werror,-Wsign-conversion] 101 | return (static_cast<uint64_t>(tbu1) << 32) | tbl; | ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ 2 errors generated.
37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
PORTNAME= benchmark
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.9.0
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Microbenchmark support library
|
|
WWW= https://github.com/google/benchmark
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cmake:testing compiler:c++11-lang pathfix
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= google
|
|
GH_TUPLE= google:googletest:release-1.12.1:googletest # requires googletest sources for some reason, see https://github.com/google/benchmark/issues/979
|
|
|
|
CMAKE_ON= BUILD_SHARED_LIBS
|
|
CMAKE_OFF= BENCHMARK_ENABLE_TESTING
|
|
CMAKE_TESTING_ON= BENCHMARK_ENABLE_TESTING # BENCHMARK_DOWNLOAD_DEPENDENCIES
|
|
CMAKE_TESTING_ARGS= -DGOOGLETEST_PATH=${WRKSRC_googletest}
|
|
|
|
CFLAGS+= -Wno-error=sign-conversion
|
|
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
|
|
CXXFLAGS_gcc= -Wno-stringop-truncation
|
|
PIE_UNSAFE= yes
|
|
|
|
BINARY_ALIAS= git=false
|
|
|
|
PLIST_SUB= VERSION=${DISTVERSION}
|
|
|
|
# tests fail to compile, due to https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280382
|
|
|
|
.include <bsd.port.mk>
|