# Created by: Johannes Dieterich <dieterich@ogolem.org>
# $FreeBSD: tags/RELEASE_11_1_0/math/clblas/Makefile 441468 2017-05-22 16:04:19Z linimon $

PORTNAME=	clblas
PORTVERSION=	2.10
DISTVERSIONPREFIX=	v
PORTREVISION=	3
CATEGORIES=	math

MAINTAINER=	dieterich@ogolem.org
COMMENT=	Software library containing BLAS functions written in OpenCL

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

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

BROKEN_powerpc64=	fails to compile: xgemm.cc: error: extra ';'

USE_GITHUB=	yes
GH_ACCOUNT=	clMathLibraries
GH_PROJECT=	clBLAS

USE_LDCONFIG=	yes
USES=		cmake python

CMAKE_ARGS+=	-DBUILD_TEST=OFF \
		-DBUILD_KTEST=OFF \
		-DCORR_TEST_WITH_ACML=OFF \
		-DSUFFIX_LIB=""

CMAKE_SOURCE_PATH=	${WRKSRC}/src

.include <bsd.port.mk>
