freebsd-ports/lang/clover/Makefile
Niclas Zeising 86562318c7 graphics/mesa: Fix minor issues from meson switch
Fix a couple of minor issues with mesa related ports after the switch to
meson.
Define _GNU_SOURCE when building on FreeBSD.  This fixes blur effects in
Plasma 5 and issues with the SDDM greeter.  This fix was originally applied
in r516100 but got lost in the switch to meson. [1]
Properly detect sys/sysctl.h on FreeBSD.  On FreeBSD sys/sysctl.h needs
sys/types.h as well, patch the meson build script to take this into account.
Fix a broken sed command to properly set ${LOCALBASE}/etc and
${LOCALBASE}/share/ as appropriate.

Bump portrevision of all mesa related ports.

PR:		247138 [1]
Reported by:	Roman [1]
Reviewed by:	manu
Tested by:	Roman, Serge Volkov
Differential Revision:	https://reviews.freebsd.org/D25265
2020-06-16 15:38:29 +00:00

53 lines
1.3 KiB
Makefile

# $FreeBSD$
PORTNAME= clover
PORTVERSION= ${MESAVERSION}
PORTREVISION= 1
CATEGORIES= lang
COMMENT= Mesa OpenCL implementation for AMD GPUs
BUILD_DEPENDS= libclc>=0.3.0:devel/libclc \
opencl>=0:devel/opencl
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd
RUN_DEPENDS= libclc>=0.3.0:devel/libclc \
opencl>=0:devel/opencl
ONLY_FOR_ARCHS= i386 amd64
ONLY_FOR_ARCHS_REASON= Clover needs a GPU supported by the Radeon KMS driver
.include <bsd.port.options.mk>
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
MESON_ARGS+= -Ddri-drivers="" \
-Dgallium-drivers=r600,radeonsi \
-Dvulkan-drivers="" \
-Dplatforms="" \
-Dgallium-vdpau=false \
-Dgallium-omx=disabled \
-Dgallium-va=false \
-Dgallium-opencl=disabled \
-Dgallium-xa=false \
-Dgallium-xvmc=false \
-Dgallium-nine=false \
-Dgles1=false \
-Dgles2=false \
-Dopengl=false \
-Dglx=disabled \
-Degl=false \
-Dgbm=false \
-Dgallium-opencl=icd \
-Dtools=""
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>