media-libs/gst-plugins-bad: add 1.20.5

Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: brahmajit das <listout@protonmail.com>
This commit is contained in:
brahmajit das
2023-01-14 15:30:40 +00:00
committed by Sam James
parent 53e5aeb258
commit 3e21fb5d92
2 changed files with 101 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST gst-plugins-bad-1.20.3.tar.xz 6222824 BLAKE2B 01aae59adbe76b8e50a49fb8bb8037e6f3aa93cbc2b658aab05ebbf30f8d1aef98c1981712caa39e3c9d08f1e0c9d76f2f874f7d2fdd994b3a0735b2809eafdf SHA512 cfcf126eabff550455decd7054a269b73489708c10a6b6090dddb5fde29bfba07ed330c339927ff170e025fa3a08d2ffb822322dc3798679366207a54132c71b
DIST gst-plugins-bad-1.20.4.tar.xz 6229992 BLAKE2B 2cd276cec9991e2ca7367a43024d7aee43adaa185a4a06ec08d1e736e72333f7f38cb54257120b9a313feb1fdc285a50d456b4c1fb33627d83acfcd3ece20687 SHA512 31b28d4a1bbecf021a90f2aa49dd344ccea12533b65f3bf3a8426ca2175469fff7b7f8e08af7d3d22c18db2fe48b9d5fbea2b325d296aee04b019cebef1eaec4
DIST gst-plugins-bad-1.20.5.tar.xz 6237720 BLAKE2B bf379da420d1f7f148cf51373f6f2d0800685487c8bdb7a768e79e0a2e4f1721053922be9321958b4ce318de12ea390de4cd89c345329ac41dd0425815e0e7f6 SHA512 4b4603d755d17a0fa072d771521bdcbf554fc9abdc8105b9d9189062e5725ae2989f430e1de77363a69d8c969ecbf15e73e9c478fabe8efac83b2d9b1b0a4a0a

View File

@@ -0,0 +1,100 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
GST_ORG_MODULE="gst-plugins-bad"
PYTHON_COMPAT=( python3_{8,9,10,11} )
inherit gstreamer-meson python-any-r1
DESCRIPTION="Less plugins for GStreamer"
HOMEPAGE="https://gstreamer.freedesktop.org/"
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 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)
# FIXME gtk? ( >=media-plugins/gst-plugins-gtk-${PV}:${SLOT}[${MULTILIB_USEDEP}] )
RDEPEND="
!media-plugins/gst-transcoder
>=media-libs/gstreamer-${PV}:${SLOT}[${MULTILIB_USEDEP},introspection?]
>=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP},egl?,introspection?,gles2=,opengl=]
introspection? ( >=dev-libs/gobject-introspection-1.31.1:= )
bzip2? ( >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] )
vnc? ( X? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) )
wayland? (
>=dev-libs/wayland-1.4.0[${MULTILIB_USEDEP}]
>=x11-libs/libdrm-2.4.55[${MULTILIB_USEDEP}]
>=dev-libs/wayland-protocols-1.15
)
orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] )
qsv? ( media-libs/oneVPL[wayland?,X?] )
"
DEPEND="${RDEPEND}"
BDEPEND="
${PYTHON_DEPS}
dev-util/glib-utils
"
DOCS=( AUTHORS ChangeLog NEWS README.md RELEASE )
# FIXME: gstharness.c:889:gst_harness_new_with_padnames: assertion failed: (element != NULL)
RESTRICT="test"
# Fixes backported to 1.20.1, to be removed in 1.20.2+
PATCHES=(
)
src_prepare() {
default
addpredict /dev # Prevent sandbox violations bug #570624
}
multilib_src_configure() {
GST_PLUGINS_NOAUTO="shm ipcpipeline librfb msdk hls"
local emesonargs=(
-Dshm=enabled
-Dipcpipeline=enabled
-Dhls=disabled
$(meson_feature vnc librfb)
$(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
myconf+=( -Dgl=disabled )
fi
gstreamer_multilib_src_configure
}
multilib_src_test() {
# Tests are slower than upstream expects
CK_DEFAULT_TIMEOUT=300 gstreamer_multilib_src_test
}
multilib_src_install_all() {
einstalldocs
find "${ED}" -name '*.la' -delete || die
}