mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
graphics/mesa-gallium-{va,vdpau}: Turn gallium drivers into options
While here bring back i386 support but only for the r600 driver as amdgpu isn't supported on this arch. Requested by: danfe, jbeich Sponsored by: Beckhoff Automation GmbH & Co. KG
This commit is contained in:
parent
8960bd7faa
commit
6bfc189110
4 changed files with 59 additions and 15 deletions
|
@ -8,7 +8,7 @@ WWW= https://www.mesa3d.org/
|
|||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/docs/license.rst
|
||||
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS= aarch64 i386 amd64 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS_REASON= used only by AMD/Radeon hardware
|
||||
|
||||
BUILD_DEPENDS= libva>=0:multimedia/libva
|
||||
|
@ -17,16 +17,30 @@ LIB_DEPENDS= libzstd.so:archivers/zstd
|
|||
USES= llvm:lib,noexport
|
||||
|
||||
OPTIONS_DEFINE= X11
|
||||
OPTIONS_GROUP= GALLIUM
|
||||
OPTIONS_DEFAULT= X11
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
X11_DESC= Enable X11 support
|
||||
X11_USES= xorg
|
||||
X11_USE= xorg=xorgproto,x11,xcb,xdamage,xext,xfixes,xshmfence,xxf86vm,xrandr
|
||||
|
||||
OPTIONS_GROUP_GALLIUM= radeonsi r600
|
||||
GALLIUM_DESC= Gallium Video Drivers
|
||||
radeonsi_DESC= AMD/ATI Southern Islands and newer
|
||||
r600_DESC= AMD/ATI R600, R700, Evergreen, Northern Islands
|
||||
OPTIONS_EXCLUDE+= ${ARCH:Mi386:C/.+/radeonsi/}
|
||||
|
||||
MESON_ARGS+= -Dgallium-drivers=${GALLIUM_DRIVERS:ts,}
|
||||
. for _gd in ${OPTIONS_GROUP_GALLIUM}
|
||||
OPTIONS_DEFAULT+= ${_gd}
|
||||
${_gd}_VARS+= GALLIUM_DRIVERS+=${_gd}
|
||||
. endfor
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
||||
|
||||
MESON_ARGS+= -Dvideo-codecs="vc1dec,h264dec,h264enc,h265dec,h265enc,av1dec,av1enc,vp9dec" \
|
||||
-Dgallium-drivers="radeonsi,r600" \
|
||||
-Dvulkan-drivers="" \
|
||||
-Dandroid-libbacktrace=disabled \
|
||||
-Dgallium-vdpau=disabled \
|
||||
|
@ -53,6 +67,14 @@ MESON_ARGS+= -Dgallium-va=enabled
|
|||
MESON_ARGS+= -Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629
|
||||
.endif
|
||||
|
||||
.for _gd in ${OPTIONS_GROUP_GALLIUM}
|
||||
. if defined(GALLIUM_DRIVERS) && ${GALLIUM_DRIVERS:M${_gd}}
|
||||
PLIST_SUB+= ${_gd}=""
|
||||
. else
|
||||
PLIST_SUB+= ${_gd}="@comment "
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
.if ${PORT_OPTIONS:MX11}
|
||||
MESON_ARGS+= -Dplatforms="x11"
|
||||
.else
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
@comment include/GL/internal/dri_interface.h
|
||||
@comment include/KHR/khrplatform.h
|
||||
@comment lib/dri/r600_dri.so
|
||||
lib/dri/r600_drv_video.so
|
||||
%%r600%%lib/dri/r600_drv_video.so
|
||||
@comment lib/dri/radeonsi_dri.so
|
||||
lib/dri/radeonsi_drv_video.so
|
||||
%%radeonsi%%lib/dri/radeonsi_drv_video.so
|
||||
@comment lib/libEGL.so
|
||||
@comment lib/libEGL.so.1
|
||||
@comment lib/libEGL.so.1.0.0
|
||||
|
|
|
@ -8,7 +8,7 @@ WWW= https://www.mesa3d.org/
|
|||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/docs/license.rst
|
||||
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS= aarch64 i386 amd64 powerpc64 powerpc64le
|
||||
ONLY_FOR_ARCHS_REASON= used only by AMD/Radeon hardware
|
||||
|
||||
BUILD_DEPENDS= libvdpau>=0:multimedia/libvdpau
|
||||
|
@ -18,11 +18,25 @@ USES= llvm:lib,noexport xorg
|
|||
|
||||
USE_XORG= xorgproto x11 xcb xdamage xext xfixes xshmfence xxf86vm xrandr
|
||||
|
||||
OPTIONS_GROUP= GALLIUM
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
OPTIONS_GROUP_GALLIUM= radeonsi r600
|
||||
GALLIUM_DESC= Gallium Video Drivers
|
||||
radeonsi_DESC= AMD/ATI Southern Islands and newer
|
||||
r600_DESC= AMD/ATI R600, R700, Evergreen, Northern Islands
|
||||
OPTIONS_EXCLUDE+= ${ARCH:Mi386:C/.+/radeonsi/}
|
||||
|
||||
MESON_ARGS+= -Dgallium-drivers=${GALLIUM_DRIVERS:ts,}
|
||||
. for _gd in ${OPTIONS_GROUP_GALLIUM}
|
||||
OPTIONS_DEFAULT+= ${_gd}
|
||||
${_gd}_VARS+= GALLIUM_DRIVERS+=${_gd}
|
||||
. endfor
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
.include "${.CURDIR:H:H}/graphics/mesa-dri/Makefile.common"
|
||||
|
||||
MESON_ARGS+= -Dgallium-drivers="r600,radeonsi" \
|
||||
-Dvulkan-drivers="" \
|
||||
MESON_ARGS+= -Dvulkan-drivers="" \
|
||||
-Dandroid-libbacktrace=disabled \
|
||||
-Dgallium-va=disabled \
|
||||
-Dgallium-omx=disabled \
|
||||
|
@ -49,4 +63,12 @@ MESON_ARGS+= -Dplatforms="x11" \
|
|||
MESON_ARGS+= -Dintel-rt=disabled # https://gitlab.freedesktop.org/mesa/mesa/-/issues/10629
|
||||
.endif
|
||||
|
||||
.for _gd in ${OPTIONS_GROUP_GALLIUM}
|
||||
. if defined(GALLIUM_DRIVERS) && ${GALLIUM_DRIVERS:M${_gd}}
|
||||
PLIST_SUB+= ${_gd}=""
|
||||
. else
|
||||
PLIST_SUB+= ${_gd}="@comment "
|
||||
. endif
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
@comment lib/libglapi.so
|
||||
@comment lib/libglapi.so.0
|
||||
@comment lib/libglapi.so.0.0.0
|
||||
lib/vdpau/libvdpau_r600.so
|
||||
lib/vdpau/libvdpau_r600.so.1
|
||||
lib/vdpau/libvdpau_r600.so.1.0
|
||||
lib/vdpau/libvdpau_r600.so.1.0.0
|
||||
lib/vdpau/libvdpau_radeonsi.so
|
||||
lib/vdpau/libvdpau_radeonsi.so.1
|
||||
lib/vdpau/libvdpau_radeonsi.so.1.0
|
||||
lib/vdpau/libvdpau_radeonsi.so.1.0.0
|
||||
%%r600%%lib/vdpau/libvdpau_r600.so
|
||||
%%r600%%lib/vdpau/libvdpau_r600.so.1
|
||||
%%r600%%lib/vdpau/libvdpau_r600.so.1.0
|
||||
%%r600%%lib/vdpau/libvdpau_r600.so.1.0.0
|
||||
%%radeonsi%%lib/vdpau/libvdpau_radeonsi.so
|
||||
%%radeonsi%%lib/vdpau/libvdpau_radeonsi.so.1
|
||||
%%radeonsi%%lib/vdpau/libvdpau_radeonsi.so.1.0
|
||||
%%radeonsi%%lib/vdpau/libvdpau_radeonsi.so.1.0.0
|
||||
@comment libdata/pkgconfig/dri.pc
|
||||
@comment libdata/pkgconfig/egl.pc
|
||||
@comment share/drirc.d/00-mesa-defaults.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue