mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
media-plugins/gst-plugins-vaapi: add 1.26.11
Signed-off-by: Alfred Wingate <parona@protonmail.com> Part-of: https://codeberg.org/gentoo/gentoo/pulls/527 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
committed by
Sam James
parent
6e8b0b3425
commit
8f708b052d
@@ -1 +1,2 @@
|
||||
DIST gstreamer-vaapi-1.24.13.tar.xz 562608 BLAKE2B 4f074a5051f5df8d7238e7f5cce2649e12c4a8bae5463385637a8e52b5abb94b3f067e66b07a396f99c1fa2d13be055dc9e50687b534c3cb678ba4834e985cec SHA512 e1d1aac0ddd00555d4e518aee2775330c5497e0caa0dcfa8d0ed2d48c8082a1ea234e0f222aad91af41fbc0680b9b59e4c4659eee301fe6dc9bf4fc89bf20671
|
||||
DIST gstreamer-vaapi-1.26.11.tar.xz 561836 BLAKE2B 0ada460e7d1787c1ea385fb379f4f73ee0e80b1a148c12da3bbf15e0c4db66874879ea3747e8aaf6e8db6fa264286b571abfb4dbed7feacde62285a5db1d6d67 SHA512 047e5f3a79e375d4ce89a1138ff28de92b30888ddb51590e1e68dcfc5efe53abd596fe647d29d48218da4fa2e8b9c4b6b96ed4e31a10eb7b71e047d9916b35e4
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit gstreamer-meson
|
||||
|
||||
MY_PN="gstreamer-vaapi"
|
||||
DESCRIPTION="Hardware accelerated video decoding through VA-API plugin for GStreamer"
|
||||
HOMEPAGE="https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi"
|
||||
SRC_URI="https://gstreamer.freedesktop.org/src/${MY_PN}/${MY_PN}-${PV}.tar.xz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1+"
|
||||
SLOT="1.0"
|
||||
KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE="+drm +egl +gles2 opengl wayland +X" # Keep default enabled IUSE in sync with gst-plugins-base and libva
|
||||
|
||||
# gst-vaapi configure is based around GL platform mainly, unlike gst-plugins-bad that goes by GL API mainly; for less surprises,
|
||||
# we design gst-vaapi ebuild in terms of GL API as main choice as well, meaning that USE opengl and/or gles2 is required to
|
||||
# enable opengl support at all and choices get chained from there.
|
||||
# One or multiple video output are required: drm, x11, glx, egl and/or wayland;
|
||||
# but GL API is our main trigger, thus USE=egl should be ineffective if neither gles2 or opengl is enabled;
|
||||
# So "|| ( drm egl opengl wayland X )" would be wrong, because egl isn't built with USE="egl -opengl -gles2", ending up with no video outputs.
|
||||
# As we ensure at least one working GL output with other REQUIRED_USE, we can put gles2/opengl in REQUIRED_USE instead of egl, solving the issue.
|
||||
# gles2 API only supported windowing system (on linux) is EGL, so require it
|
||||
# opengl API only supported windowing systems (on linux) are EGL and GLX, so require one of them (glx is enabled with USE="opengl X")
|
||||
REQUIRED_USE="
|
||||
|| ( drm gles2 opengl wayland X )
|
||||
gles2? ( egl )
|
||||
opengl? ( || ( egl X ) )
|
||||
wayland? ( drm )
|
||||
"
|
||||
|
||||
# glx doesn't require libva-glx (libva[opengl]) afaics, only by tests/test-display.c
|
||||
# USE flag behavior:
|
||||
# 'drm' enables vaapi drm support
|
||||
# 'egl' enables EGL platform support (but only if also 'opengl||gles2')
|
||||
# - 'egl' is exposed as a USE flag mainly to get EGL support instead of or in addition to GLX support with desktop GL while keeping it optional for pure GLX cases;
|
||||
# it's always required with USE=gles2, thus USE="gles2 opengl X" will require and build desktop GL EGL platform support as well on top of GLX, which doesn't add extra deps at that point.
|
||||
# 'gles2' enables GLESv2 or GLESv3 based GL API support
|
||||
# 'opengl' enables desktop OpenGL based GL API support
|
||||
# 'wayland' enables non-GL Wayland support; wayland EGL support when combined with 'egl' (but only if also 'opengl||gles2')
|
||||
# 'X' enables non-GL X support; GLX support when combined with 'opengl'
|
||||
# gst-plugins-bad still needed for codecparsers (GL libraries moved to -base); checked for 1.14 (recheck for 1.16)
|
||||
GST_REQ="${PV}"
|
||||
GL_DEPS="
|
||||
>=media-libs/gst-plugins-base-${GST_REQ}:${SLOT}[egl?,gles2?,opengl?,wayland?,X?]
|
||||
>=media-libs/mesa-24.1.0_rc1[opengl,X?,${MULTILIB_USEDEP}]
|
||||
"
|
||||
RDEPEND="
|
||||
>=media-libs/gst-plugins-base-${GST_REQ}:${SLOT}[${MULTILIB_USEDEP}]
|
||||
>=media-libs/gst-plugins-bad-${GST_REQ}:${SLOT}[${MULTILIB_USEDEP}]
|
||||
>=media-libs/libva-1.15.0:=[drm(+)?,wayland?,X?,${MULTILIB_USEDEP}]
|
||||
drm? (
|
||||
>=virtual/libudev-208:=[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libdrm-2.4.98[${MULTILIB_USEDEP}]
|
||||
)
|
||||
gles2? ( ${GL_DEPS} )
|
||||
opengl? ( ${GL_DEPS} )
|
||||
wayland? ( >=dev-libs/wayland-1.11.0[${MULTILIB_USEDEP}] )
|
||||
X? (
|
||||
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
|
||||
>=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}]
|
||||
x11-libs/libXrender[${MULTILIB_USEDEP}] )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
multilib_src_configure() {
|
||||
GST_PLUGINS_NOAUTO="wayland"
|
||||
|
||||
local emesonargs=(
|
||||
-Dencoders=enabled
|
||||
$(meson_feature drm)
|
||||
$(meson_feature X x11)
|
||||
$(meson_feature wayland)
|
||||
)
|
||||
|
||||
if use opengl || use gles2; then
|
||||
emesonargs+=( $(meson_feature egl) )
|
||||
else
|
||||
emesonargs+=( -Degl=disabled )
|
||||
fi
|
||||
|
||||
if use opengl && use X; then
|
||||
emesonargs+=( -Dglx=enabled )
|
||||
else
|
||||
emesonargs+=( -Dglx=disabled )
|
||||
fi
|
||||
|
||||
# Workaround EGL/eglplatform.h being built with X11 present
|
||||
use X || export CFLAGS="${CFLAGS} -DEGL_NO_X11"
|
||||
|
||||
gstreamer_multilib_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user