media-libs/gst-plugins-bad: allow use of onevpl

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2022-11-23 23:13:17 +01:00
parent a0832cc15e
commit aee47352bb
2 changed files with 15 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ LICENSE="LGPL-2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
# TODO: egl and gtk IUSE only for transition
IUSE="X bzip2 +egl gles2 gtk +introspection +opengl +orc vnc wayland" # Keep default IUSE mirrored with gst-plugins-base where relevant
IUSE="X bzip2 +egl gles2 gtk +introspection +opengl +orc vnc wayland qsv" # Keep default IUSE mirrored with gst-plugins-base where relevant
# X11 is automagic for now, upstream #709530 - only used by librfb USE=vnc plugin
# We mirror opengl/gles2 from -base to ensure no automagic openglmixers plugin (with "opengl?" it'd still get built with USE=-opengl here)
@@ -33,6 +33,8 @@ RDEPEND="
)
orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] )
qsv? ( media-libs/oneVPL[wayland?,X?] )
"
DEPEND="${RDEPEND}"
@@ -57,7 +59,7 @@ src_prepare() {
}
multilib_src_configure() {
GST_PLUGINS_NOAUTO="shm ipcpipeline librfb hls"
GST_PLUGINS_NOAUTO="shm ipcpipeline librfb msdk hls"
local emesonargs=(
-Dshm=enabled
@@ -68,6 +70,16 @@ multilib_src_configure() {
$(meson_feature wayland)
)
# Quick Sync Video is amd64 native only
if use qsv && multilib_is_native_abi; then
emesonargs+=(
-Dmsdk=enabled
-Dmfx_api=oneVPL
)
else
emesonargs+=( -Dmsdk=disabled )
fi
if use opengl || use gles2; then
myconf+=( -Dgl=enabled )
else

View File

@@ -9,5 +9,6 @@
<flag name="bzip2">Enable bzip2 encoder/decoder plugin</flag>
<flag name="egl">Enable EGL support</flag>
<flag name="gles2">Enable GLES2 support</flag>
<flag name="qsv">Enable Intel Quick Sync Video using the <pkg>media-libs/oneVPL</pkg> dispatcher</flag>
</use>
</pkgmetadata>