6e38f0a624
And put noexport in every mesa ports.
It does work to have multiple USES= llvm (see PR 199603).
Reported by: jbeich
Fixes: fa7309cb97
("lang/clover: Restrict llvm to max version 16")
Sponsored by: Beckhoff Automation GmbH & Co. KG
64 lines
1.5 KiB
Makefile
64 lines
1.5 KiB
Makefile
PORTNAME= mesa-gallium-va
|
|
PORTVERSION= ${MESAVERSION}
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
|
|
COMMENT= Mesa Gallium VAAPI drivers
|
|
WWW= https://www.mesa3d.org/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/docs/license.rst
|
|
|
|
ONLY_FOR_ARCHS= aarch64 amd64 i386 powerpc64 powerpc64le
|
|
ONLY_FOR_ARCHS_REASON= used only by AMD/Radeon hardware
|
|
|
|
LIB_DEPENDS= libva.so:multimedia/libva \
|
|
libzstd.so:archivers/zstd
|
|
|
|
USES= llvm:lib,noexport
|
|
|
|
OPTIONS_DEFINE= X11
|
|
OPTIONS_DEFAULT= X11
|
|
X11_DESC= Enable X11 support
|
|
X11_USES= xorg
|
|
X11_USE= xorg=xorgproto,x11,xcb,xdamage,xext,xfixes,xshmfence,xxf86vm,xrandr
|
|
|
|
.include <bsd.port.options.mk>
|
|
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
|
|
|
MESON_ARGS+= -Dvideo-codecs="vc1dec,h264dec,h264enc,h265dec,h265enc" \
|
|
-Dgallium-drivers="radeonsi,r600" \
|
|
-Dvulkan-drivers="" \
|
|
-Dandroid-libbacktrace=disabled \
|
|
-Dgallium-vdpau=disabled \
|
|
-Dgallium-omx=disabled \
|
|
-Dgallium-xa=disabled \
|
|
-Dgallium-opencl=disabled \
|
|
-Dgallium-nine=false \
|
|
-Dgbm=disabled \
|
|
-Dgles1=disabled \
|
|
-Dgles2=disabled \
|
|
-Dlmsensors=disabled \
|
|
-Dmicrosoft-clc=disabled \
|
|
-Dosmesa=false \
|
|
-Dvalgrind=disabled \
|
|
-Dglx=disabled \
|
|
-Ddri3=enabled
|
|
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
MESON_ARGS+= -Dgallium-va=enabled
|
|
|
|
.if ${PORT_OPTIONS:MX11}
|
|
MESON_ARGS+= -Dplatforms="x11"
|
|
.else
|
|
MESON_ARGS+= -Dglx=disabled \
|
|
-Degl=disabled \
|
|
-Dopengl=false \
|
|
-Dshared-glapi=disabled \
|
|
-Dxlib-lease=disabled \
|
|
-Dplatforms=""
|
|
.endif
|
|
|
|
.include "${MASTERDIR}/Makefile.targets"
|
|
.include <bsd.port.post.mk>
|