Changeset View
Changeset View
Standalone View
Standalone View
lang/clover/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= clover | PORTNAME= clover | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 0 | |||||
CATEGORIES= lang | CATEGORIES= lang | ||||
COMMENT= Mesa "Clover" OpenCL library | COMMENT= Mesa "Clover" OpenCL library | ||||
BUILD_DEPENDS= opencl>=0:devel/opencl | BUILD_DEPENDS= libclc>=0.2.0.20160915:devel/libclc \ | ||||
opencl>=0:devel/opencl \ | |||||
${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs | |||||
LIB_DEPENDS= libdrm.so:graphics/libdrm \ | LIB_DEPENDS= libdrm.so:graphics/libdrm \ | ||||
libOpenCL.so:devel/ocl-icd \ | libexpat.so:textproc/expat2 \ | ||||
libexpat.so:textproc/expat2 | libOpenCL.so:devel/ocl-icd | ||||
RUN_DEPENDS= opencl>=0:devel/opencl | RUN_DEPENDS= opencl>=0:devel/opencl | ||||
USE_XORG= dri2proto dri3proto glproto presentproto x11 xdamage xext \ | |||||
xfixes xshmfence xvmc xxf86vm | |||||
ONLY_FOR_ARCHS= i386 amd64 | ONLY_FOR_ARCHS= i386 amd64 | ||||
ONLY_FOR_ARCHS_REASON= Clover needs a graphics driver supported by the Radeon KMS driver | ONLY_FOR_ARCHS_REASON= Clover needs a GPU supported by the Radeon KMS driver | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.include "${.CURDIR}/../../graphics/libGL/Makefile.common" | .include "${.CURDIR}/../../graphics/mesa-dri/Makefile.common" | ||||
#MESA_BUILD_WRKSRC= src/util src/glsl src/mesa src/gallium | CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd --disable-dri \ | ||||
--disable-egl --disable-gbm --disable-glx \ | |||||
--disable-va --disable-vdpau --disable-xvmc \ | |||||
--with-gallium-drivers=r600,radeonsi | |||||
#MESA_BUILD_WRKSRC= src/util src/compiler src/mesa src/gallium | |||||
MESA_INSTALL_WRKSRC= src/gallium/targets/opencl src/gallium/targets/pipe-loader | MESA_INSTALL_WRKSRC= src/gallium/targets/opencl src/gallium/targets/pipe-loader | ||||
.include "${.CURDIR}/../../graphics/libGL/Makefile.targets" | .include "${.CURDIR}/../../graphics/mesa-dri/Makefile.targets" | ||||
pre-configure: | |||||
@if [ -e ${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} ] && \ | |||||
! [ -e ${LOCALBASE}/bin/clang${MESA_LLVM_VER} ]; then \ | |||||
${ECHO_MSG} "Your llvm${MESA_LLVM_VER} is not built with clang support, which is required."; \ | |||||
${FALSE}; \ | |||||
fi | |||||
post-install: | post-install: | ||||
@${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/ | @${MV} ${STAGEDIR}/etc/OpenCL ${STAGEDIR}${PREFIX}/etc/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |