Changeset View
Changeset View
Standalone View
Standalone View
head/lang/clover/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= clover | PORTNAME= clover | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
CATEGORIES= lang | CATEGORIES= lang | ||||
COMMENT= Mesa "Clover" OpenCL library | COMMENT= Mesa "Clover" OpenCL library | ||||
BUILD_DEPENDS= libclc>=0.2.0.20160915:devel/libclc \ | BUILD_DEPENDS= libclc>=0.2.0.20160915:devel/libclc \ | ||||
opencl>=0:devel/opencl \ | opencl>=0:devel/opencl | ||||
${LOCALBASE}/libdata/pkgconfig/pthread-stubs.pc:devel/libpthread-stubs | LIB_DEPENDS= libOpenCL.so:devel/ocl-icd | ||||
LIB_DEPENDS= libdrm.so:graphics/libdrm \ | |||||
libexpat.so:textproc/expat2 \ | |||||
libOpenCL.so:devel/ocl-icd | |||||
RUN_DEPENDS= opencl>=0:devel/opencl | RUN_DEPENDS= opencl>=0:devel/opencl | ||||
ONLY_FOR_ARCHS= i386 amd64 | ONLY_FOR_ARCHS= i386 amd64 | ||||
ONLY_FOR_ARCHS_REASON= Clover needs a GPU 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/mesa-dri/Makefile.common" | .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" | ||||
CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd --disable-dri \ | CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd --disable-dri \ | ||||
--disable-egl --disable-gbm --disable-glx \ | --disable-egl --disable-gbm --disable-gles2 --disable-glx \ | ||||
--disable-va --disable-vdpau --disable-xvmc \ | --disable-va --disable-vdpau --disable-xvmc \ | ||||
--with-gallium-drivers=r600,radeonsi | --with-gallium-drivers=r600,radeonsi # only supported GPUs | ||||
#MESA_BUILD_WRKSRC= src/util src/compiler src/mesa src/gallium | #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/mesa-dri/Makefile.targets" | .include "${MASTERDIR}/Makefile.targets" | ||||
pre-configure: | pre-configure: | ||||
@if [ -e ${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} ] && \ | @if [ -e ${LOCALBASE}/bin/llvm-config${MESA_LLVM_VER} ] && \ | ||||
! [ -e ${LOCALBASE}/bin/clang${MESA_LLVM_VER} ]; then \ | ! [ -e ${LOCALBASE}/bin/clang${MESA_LLVM_VER} ]; then \ | ||||
${ECHO_MSG} "Your llvm${MESA_LLVM_VER} is not built with clang support, which is required."; \ | ${ECHO_MSG} "Your llvm${MESA_LLVM_VER} is not built with clang support, which is required."; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi | 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.post.mk> |