blob: 7b7dc2870a49871482f5352a6ac3570c0c9dd1a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
GST_ORG_MODULE="gst-plugins-bad"
inherit gstreamer-meson
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"
IUSE="X bzip2 +introspection +orc udev vaapi vnc wayland"
# X11 is automagic for now, upstream #709530 - only used by librfb USE=vnc plugin
# Baseline requirement for libva is 1.6, but 1.10 gets more features
RDEPEND="
!media-plugins/gst-plugins-va
!media-plugins/gst-transcoder
>=media-libs/gstreamer-${PV}:${SLOT}[${MULTILIB_USEDEP},introspection?]
>=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP},introspection?]
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.33[${MULTILIB_USEDEP}] )
vaapi? (
>=media-libs/libva-1.10:=[${MULTILIB_USEDEP}]
udev? ( dev-libs/libgudev[${MULTILIB_USEDEP}] )
)
"
DEPEND="${RDEPEND}"
BDEPEND="dev-util/glib-utils"
DOCS=( AUTHORS ChangeLog NEWS README.md RELEASE )
PATCHES=(
"${FILESDIR}"/0001-meson-Fix-libdrm-and-vaapi-configure-checks.patch
"${FILESDIR}"/0002-meson-Add-feature-options-for-optional-va-deps-libdr.patch
)
src_prepare() {
default
addpredict /dev # Prevent sandbox violations bug #570624
}
multilib_src_configure() {
GST_PLUGINS_NOAUTO="bz2 hls ipcpipeline librfb shm va wayland"
local emesonargs=(
-Dshm=enabled
-Dipcpipeline=enabled
-Dhls=disabled
$(meson_feature bzip2 bz2)
$(meson_feature vaapi va)
-Dudev=$(usex udev $(usex vaapi enabled disabled) disabled)
$(meson_feature vnc librfb)
-Dx11=$(usex X $(usex vnc enabled disabled) disabled)
$(meson_feature wayland)
)
gstreamer_multilib_src_configure
}
multilib_src_test() {
# Tests are slower than upstream expects
CK_DEFAULT_TIMEOUT=300 gstreamer_multilib_src_test
}
|