blob: c3ac882813f07a847918a3c453fa65140d867a54 (
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
39
40
|
# $FreeBSD$
PORTNAME= clover
PORTVERSION= ${MESAVERSION}
PORTREVISION= 0
CATEGORIES= lang
COMMENT= Mesa "Clover" OpenCL library
BUILD_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl
LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm \
libOpenCL.so:${PORTSDIR}/devel/ocl-icd \
libexpat.so:${PORTSDIR}/textproc/expat2
RUN_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl
USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto \
presentproto xvmc xshmfence
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
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1001000 && ${ARCH} == amd64
IGNORE= Clover is only supported on FreeBSD 10.1 and newer
.endif
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1002000 && ${ARCH} == i386
IGNORE= Clover is only supported on FreeBSD 10.2 and newer
.endif
.include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
post-install:
@${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/
.include <bsd.port.mk>
|