986a59f403
Approved by: portmgr (tier-2 blanket)
39 lines
841 B
Makefile
39 lines
841 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libcelero
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 2.6.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= benchmarks
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= C++ benchmark authoring library/framework
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/sys/sysinfo.h:devel/libsysinfo
|
|
|
|
USES= cmake compiler localbase:ldflags
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= DigitalInBlue
|
|
GH_PROJECT= Celero
|
|
USE_LDCONFIG= yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
|
USE_GCC= yes
|
|
.else
|
|
# workaround for breakage with clang-10: https://github.com/DigitalInBlue/Celero/issues/142
|
|
LLVM_VER= 80
|
|
BUILD_DEPENDS+= clang${LLVM_VER}:devel/llvm${LLVM_VER}
|
|
CPP= clang-cpp${LLVM_VER}
|
|
CC= clang${LLVM_VER}
|
|
CXX= clang++${LLVM_VER}
|
|
.if ${ARCH:Mpowerpc64*}
|
|
CFLAGS+= -mabi=elfv2
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|