Import lang/clover version 10.6.8
[dports.git] / lang / clover / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       clover
4 PORTVERSION=    ${MESAVERSION}
5 PORTREVISION=   0
6 CATEGORIES=     lang
7
8 COMMENT=        Mesa "Clover" OpenCL library
9
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
15
16 USE_XORG=       glproto x11 xext xxf86vm xdamage xfixes dri2proto \
17                 presentproto xvmc xshmfence
18
19 ONLY_FOR_ARCHS= i386 amd64 powerpc64
20 ONLY_FOR_ARCHS_REASON=  Clover needs a graphics driver supported by the Radeon KMS driver
21
22 .include <bsd.port.options.mk>
23 .include "${.CURDIR}/../../graphics/libGL/Makefile.common"
24
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
27
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
32 .endif
33
34 .include "${.CURDIR}/../../graphics/libGL/Makefile.targets"
35
36 post-install:
37         @${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/
38
39 .include <bsd.port.mk>