aboutsummaryrefslogtreecommitdiff
path: root/lang/clover/Makefile
blob: 64e0378ba1b4210a23b8a8ef6c4efe632867a7c9 (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
# $FreeBSD$

PORTNAME=	clover
PORTVERSION=	${MESAVERSION}
PORTREVISION=	0
CATEGORIES=	lang

COMMENT=	Mesa "Clover" OpenCL library

BUILD_DEPENDS=	opencl>=0:devel/opencl
LIB_DEPENDS=	libdrm.so:graphics/libdrm \
		libOpenCL.so:devel/ocl-icd \
		libexpat.so:textproc/expat2
RUN_DEPENDS=	opencl>=0:devel/opencl

USES=		ssl
USE_XORG=	dri2proto dri3proto glproto presentproto x11 xdamage xext \
		xfixes xshmfence xvmc xxf86vm

ONLY_FOR_ARCHS=	i386 amd64
ONLY_FOR_ARCHS_REASON=	Clover needs a graphics driver supported by the Radeon KMS driver

.include <bsd.port.options.mk>
.include "${.CURDIR}/../../graphics/libGL/Makefile.common"

#MESA_BUILD_WRKSRC=	src/util src/glsl src/mesa src/gallium
MESA_INSTALL_WRKSRC=	src/gallium/targets/opencl src/gallium/targets/pipe-loader

.include "${.CURDIR}/../../graphics/libGL/Makefile.targets"

post-install:
	@${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/

.include <bsd.port.mk>