mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
a9e25d866f
meson.build:1891:2: ERROR: Dependency "SPIRV-Tools" not found, tried pkgconfig PR: 270361
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
PORTNAME= clover
|
|
PORTVERSION= ${MESAVERSION}
|
|
CATEGORIES= lang
|
|
|
|
COMMENT= Mesa OpenCL implementation for AMD GPUs
|
|
WWW= https://dri.freedesktop.org/wiki/GalliumCompute/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/docs/license.rst
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386 powerpc64 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= needs a GPU supported by the Radeon KMS driver
|
|
|
|
BUILD_DEPENDS= libclc>=0.3.0:devel/libclc \
|
|
opencl>=0:devel/opencl
|
|
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \
|
|
libLLVM-${LLVM_DEFAULT}.so:devel/llvm${LLVM_DEFAULT} \
|
|
libzstd.so:archivers/zstd
|
|
RUN_DEPENDS= libclc>=0.3.0:devel/libclc \
|
|
opencl>=0:devel/opencl
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
|
|
|
MESON_ARGS+= -Ddri-drivers="" \
|
|
-Dplatforms="" \
|
|
-Dvulkan-drivers="" \
|
|
-Dgallium-nine=false \
|
|
-Dgallium-omx=disabled \
|
|
-Dgallium-opencl=disabled \
|
|
-Dgallium-va=disabled \
|
|
-Dgallium-vdpau=disabled \
|
|
-Dgallium-xa=disabled \
|
|
-Dgles1=disabled \
|
|
-Dgles2=disabled \
|
|
-Dmicrosoft-clc=disabled \
|
|
-Dopengl=false \
|
|
-Dglx=disabled \
|
|
-Degl=disabled \
|
|
-Dgbm=disabled \
|
|
-Dtools="" \
|
|
-Dgallium-opencl=icd \
|
|
-Dgallium-drivers=r600,radeonsi
|
|
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
|
|
|
pre-patch:
|
|
@if [ -e ${LOCALBASE}/bin/llvm-config${LLVM_DEFAULT} ] && \
|
|
! [ -e ${LOCALBASE}/bin/clang${LLVM_DEFAULT} ]; then \
|
|
${ECHO_MSG} "Your llvm${LLVM_DEFAULT} is not built with clang support, which is required."; \
|
|
${FALSE}; \
|
|
fi
|
|
|
|
.include <bsd.port.post.mk>
|