# Created by: Johannes Dieterich <dieterich@ogolem.org>
# $FreeBSD: head/benchmarks/clpeak/Makefile 442362 2017-06-02 00:20:18Z jmd $

PORTNAME=	clpeak
PORTVERSION=	1.0g20170524
CATEGORIES=	benchmarks

MAINTAINER=	jmd@FreeBSD.org
COMMENT=	Benchmarking tool to measure peak capabilities of opencl devices

LICENSE=	PD
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	opencl>=0:devel/opencl
LIB_DEPENDS=	libOpenCL.so:devel/ocl-icd
RUN_DEPENDS=	opencl>=0:devel/opencl

ONLY_FOR_ARCHS=	amd64
ONLY_FOR_ARCHS_REASON_amd64=	only builds and is supported on amd64

USE_GITHUB=	yes
GH_ACCOUNT=	krrishnarraj
GH_TAGNAME=	75c8746

USE_LDCONFIG=	yes
USE_GL=		gl
USES=		cmake

CXXFLAGS+=	-std=c++11

PLIST_FILES=	bin/clpeak

do-install:
		${INSTALL_PROGRAM} ${WRKSRC}/clpeak ${STAGEDIR}${PREFIX}/bin/clpeak

.include <bsd.port.mk>
