1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/devel/benchmark/Makefile
Yuri Victorovich 5d5354ad94 devel/benchmark: Update 1.5.6 -> 1.6.0
Reported by:	portscout
2021-09-09 08:52:03 -07:00

33 lines
1.0 KiB
Makefile

PORTNAME= benchmark
DISTVERSIONPREFIX= v
DISTVERSION= 1.6.0
CATEGORIES= devel
MAINTAINER= yuri@FreeBSD.org
COMMENT= Microbenchmark support library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cmake compiler:c++11-lang
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= google
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= BENCHMARK_ENABLE_TESTING
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-thread-safety-analysis # workaround for https://github.com/google/benchmark/issues/655
CXXFLAGS_gcc= -Wno-stringop-truncation
CXXFLAGS+= -Wno-sign-compare # workaround for https://github.com/google/googletest/issues/1752
do-test: # Broken: https://github.com/google/benchmark/issues/979
@cd ${BUILD_WRKSRC} && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBENCHMARK_ENABLE_TESTING=ON -DGOOGLETEST_PATH=${LOCALBASE} ${CMAKE_SOURCE_PATH} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test
.include <bsd.port.mk>