4 PORTVERSION= ${MESAVERSION}
8 COMMENT= Mesa "Clover" OpenCL library
10 BUILD_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl
11 LIB_DEPENDS= libdrm.so:${PORTSDIR}/graphics/libdrm \
12 libOpenCL.so:${PORTSDIR}/devel/ocl-icd \
13 libexpat.so:${PORTSDIR}/textproc/expat2
14 RUN_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl
16 USE_XORG= glproto x11 xext xxf86vm xdamage xfixes dri2proto \
17 presentproto xvmc xshmfence
19 ONLY_FOR_ARCHS= i386 amd64 powerpc64
20 ONLY_FOR_ARCHS_REASON= Clover needs a graphics driver supported by the Radeon KMS driver
22 .include <bsd.port.options.mk>
23 .include "${.CURDIR}/../../graphics/libGL/Makefile.common"
25 #MESA_BUILD_WRKSRC= src/util src/glsl src/mesa src/gallium
26 MESA_INSTALL_WRKSRC= src/gallium/targets/opencl src/gallium/targets/pipe-loader
28 .if ${OPSYS} == FreeBSD && ${OSVERSION} < 1001514 && ${ARCH} == powerpc64
29 IGNORE= Clover is only support on powerpc64 in FreeBSD 10.2
30 .elif ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000 && ${ARCH} != powerpc64
31 IGNORE= Clover is only supported on FreeBSD 10.1 and newer
34 .include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
37 @${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/
39 .include <bsd.port.mk>