aboutsummaryrefslogtreecommitdiff
path: root/math/clrng/Makefile
blob: 91da54cb06bd0bcafa38c05bca6e0da44422cc12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Johannes Dieterich <dieterich@ogolem.org>
# $FreeBSD$

PORTNAME=	clrng
DISTVERSIONPREFIX=	v
DISTVERSION=	1.0.0-beta
CATEGORIES=	math

MAINTAINER=	dieterich@ogolem.org
COMMENT=	Library for uniform random number generation in OpenCL

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

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

BROKEN_FreeBSD_9=	clRNG is only supported on FreeBSD 10.1 and newer

ONLY_FOR_ARCHS=		amd64 i386 powerpc powerpc64
ONLY_FOR_ARCHS_REASON=	this code has only been tested on x86 and powerpc platforms

USE_GITHUB=	yes
GH_ACCOUNT=	clMathLibraries
GH_PROJECT=	clRNG

USE_LDCONFIG=	yes
USES=		cmake

CMAKE_ARGS+=	-DBUILD_CLIENT=OFF \
		-DBUILD_TEST=OFF \
		-DSUFFIX_LIB="" \
		-DSUFFIX_BIN=""

CMAKE_SOURCE_PATH=	${WRKSRC}/src

.include <bsd.port.mk>