Changeset View
Changeset View
Standalone View
Standalone View
lang/clover/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= clover | PORTNAME= clover | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 5 | |||||
CATEGORIES= lang | CATEGORIES= lang | ||||
COMMENT= Mesa OpenCL implementation for AMD GPUs | COMMENT= Mesa OpenCL implementation for AMD GPUs | ||||
BUILD_DEPENDS= libclc>=0.3.0:devel/libclc \ | BUILD_DEPENDS= libclc>=0.3.0:devel/libclc \ | ||||
opencl>=0:devel/opencl | opencl>=0:devel/opencl \ | ||||
wayland-protocols>=1.8:graphics/wayland-protocols \ | |||||
wayland-scanner:graphics/wayland | |||||
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd | LIB_DEPENDS= libOpenCL.so:devel/ocl-icd | ||||
RUN_DEPENDS= libclc>=0.3.0:devel/libclc \ | RUN_DEPENDS= libclc>=0.3.0:devel/libclc \ | ||||
opencl>=0:devel/opencl | opencl>=0:devel/opencl | ||||
USE_XORG= xorgproto x11 xdamage xext xfixes xshmfence xv xrandr xcb xxf86vm | |||||
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:H:H}/graphics/mesa-dri/Makefile.common" | .include "${.CURDIR:H:H}/graphics/mesa/Makefile.common" | ||||
CONFIGURE_ARGS+= --enable-opencl --enable-opencl-icd --disable-dri \ | MESON_ARGS+= -Dgallium-opencl=icd -Ddri-drivers="" -Dvulkan-drivers="" \ | ||||
--disable-egl --disable-gbm --disable-gles2 --disable-glx \ | -Degl=false -Dgbm=false -Dgles2=false -Dglx=disabled \ | ||||
--disable-va --disable-vdpau --disable-xvmc \ | -Dgallium-va=false -Dgallium-vdpau=false -Dopengl=false \ | ||||
--with-gallium-drivers=r600,radeonsi # only supported GPUs | -Dgallium-xvmc=false -Dgallium-drivers=r600,radeonsi # only supported GPUs | ||||
LDFLAGS_i386= -Wl,-znotext | LDFLAGS_i386= -Wl,-znotext | ||||
#MESA_BUILD_WRKSRC= src/util src/compiler src/mesa src/gallium | |||||
MESA_INSTALL_WRKSRC= src/gallium/targets/opencl src/gallium/targets/pipe-loader | |||||
.include "${MASTERDIR}/Makefile.targets" | |||||
pre-configure: | pre-configure: | ||||
@if [ -e ${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT} ] && \ | @if [ -e ${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT} ] && \ | ||||
! [ -e ${LOCALBASE}/bin/clang${LLVM_DEFAULT} ]; then \ | ! [ -e ${LOCALBASE}/bin/clang${LLVM_DEFAULT} ]; then \ | ||||
${ECHO_MSG} "Your llvm${LLVM_DEFAULT} is not built with clang support, which is required."; \ | ${ECHO_MSG} "Your llvm${LLVM_DEFAULT} is not built with clang support, which is required."; \ | ||||
${FALSE}; \ | ${FALSE}; \ | ||||
fi | fi | ||||
.include <bsd.port.post.mk> |