Changeset View
Changeset View
Standalone View
Standalone View
head/lang/clover/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= clover | PORTNAME= clover | ||||
PORTVERSION= ${MESAVERSION} | PORTVERSION= ${MESAVERSION} | ||||
PORTREVISION= 1 | |||||
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 | ||||
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd | LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \ | ||||
libzstd.so:archivers/zstd | |||||
RUN_DEPENDS= libclc>=0.3.0:devel/libclc \ | RUN_DEPENDS= libclc>=0.3.0:devel/libclc \ | ||||
opencl>=0:devel/opencl | 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:H:H}/graphics/mesa-dri/Makefile.common" | .include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common" | ||||
MESON_ARGS+= -Ddri-drivers="" \ | MESON_ARGS+= -Ddri-drivers="" \ | ||||
-Dgallium-drivers=r600,radeonsi \ | |||||
-Dvulkan-drivers="" \ | |||||
-Dplatforms="" \ | -Dplatforms="" \ | ||||
-Dgallium-vdpau=false \ | -Dvulkan-drivers="" \ | ||||
-Dgallium-nine=false \ | |||||
-Dgallium-omx=disabled \ | -Dgallium-omx=disabled \ | ||||
-Dgallium-va=false \ | |||||
-Dgallium-opencl=disabled \ | -Dgallium-opencl=disabled \ | ||||
-Dgallium-xa=false \ | -Dgallium-va=disabled \ | ||||
-Dgallium-xvmc=false \ | -Dgallium-vdpau=disabled \ | ||||
-Dgallium-nine=false \ | -Dgallium-xa=disabled \ | ||||
-Dgles1=false \ | -Dgallium-xvmc=disabled \ | ||||
-Dgles2=false \ | -Dgles1=disabled \ | ||||
-Dgles2=disabled \ | |||||
-Dopengl=false \ | -Dopengl=false \ | ||||
-Dglx=disabled \ | -Dglx=disabled \ | ||||
-Degl=false \ | -Degl=disabled \ | ||||
-Dgbm=false \ | -Dgbm=disabled \ | ||||
-Dtools="" \ | |||||
-Dgallium-opencl=icd \ | -Dgallium-opencl=icd \ | ||||
-Dtools="" | -Dgallium-drivers=r600,radeonsi | ||||
LDFLAGS_i386= -Wl,-znotext | LDFLAGS_i386= -Wl,-znotext | ||||
.include "${MASTERDIR}/Makefile.targets" | .include "${MASTERDIR}/Makefile.targets" | ||||
pre-patch: | pre-patch: | ||||
@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> | .include <bsd.port.post.mk> |