| 4 |
4 |
EAPI=8
|
| 5 |
5 |
GST_ORG_MODULE="gst-plugins-base"
|
| 6 |
6 |
|
| 7 |
|
inherit flag-o-matic meson-multilib gstreamer-meson virtualx
|
|
7 |
inherit flag-o-matic meson-multilib gstreamer-meson verify-sig virtualx
|
| 8 |
8 |
|
| 9 |
9 |
DESCRIPTION="Basepack of plugins for gstreamer"
|
| 10 |
10 |
HOMEPAGE="https://gstreamer.freedesktop.org/"
|
|
11 |
SRC_URI+=" verify-sig? ( https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz.asc )"
|
| 11 |
12 |
|
| 12 |
13 |
LICENSE="GPL-2+ LGPL-2+"
|
| 13 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~sparc x86 ~x64-macos ~x64-solaris"
|
|
14 |
KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ppc64 ~riscv ~sparc x86 ~x64-macos ~x64-solaris"
|
| 14 |
15 |
|
| 15 |
16 |
# For OpenGL we have three separate concepts, with a list of possibilities in each:
|
| 16 |
17 |
# * opengl APIs - opengl and/or gles2; USE=opengl and USE=gles2 enable these accordingly; if neither is enabled, OpenGL helper library and elements are not built at all and all the other options aren't relevant
|
| ... | ... | |
| 59 |
60 |
>=media-libs/graphene-1.4.0[${MULTILIB_USEDEP}]
|
| 60 |
61 |
media-libs/libpng:0=[${MULTILIB_USEDEP}]
|
| 61 |
62 |
media-libs/libjpeg-turbo:0=[${MULTILIB_USEDEP}]
|
|
63 |
virtual/opengl
|
| 62 |
64 |
" # graphene for optional gltransformation and glvideoflip elements and more GLSL Uniforms support in glshader; libpng/jpeg for gloverlay element
|
| 63 |
65 |
# >=media-libs/graphene-1.4.0[${MULTILIB_USEDEP}]
|
| 64 |
66 |
|
| ... | ... | |
| 69 |
71 |
introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= )
|
| 70 |
72 |
ivorbis? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] )
|
| 71 |
73 |
ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )
|
| 72 |
|
orc? ( >=dev-lang/orc-0.4.33[${MULTILIB_USEDEP}] )
|
|
74 |
orc? ( >=dev-lang/orc-0.4.41[${MULTILIB_USEDEP}] )
|
| 73 |
75 |
kernel_linux? ( >=x11-libs/libdrm-2.4.55[${MULTILIB_USEDEP}] )
|
| 74 |
76 |
pango? ( >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] )
|
| 75 |
77 |
theora? ( >=media-libs/libtheora-1.1.1:=[encode,${MULTILIB_USEDEP}] )
|
| ... | ... | |
| 87 |
89 |
dev-util/glib-utils
|
| 88 |
90 |
X? ( x11-base/xorg-proto )
|
| 89 |
91 |
"
|
|
92 |
BDEPEND="verify-sig? ( sec-keys/openpgp-keys-tpm )"
|
| 90 |
93 |
|
| 91 |
94 |
DOCS=( AUTHORS NEWS README.md RELEASE )
|
|
95 |
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/tpm.asc
|
| 92 |
96 |
|
| 93 |
97 |
PATCHES=(
|
| 94 |
|
"${FILESDIR}"/gst-plugins-base-1.24.13-ZDI-CAN-28854.patch
|
|
98 |
# bug #974283
|
|
99 |
"${FILESDIR}"/gst-plugins-base-1.26.11-GStreamer-SA-2026-0014.patch
|
|
100 |
# bug #974285
|
|
101 |
"${FILESDIR}"/gst-plugins-base-1.26.11-GStreamer-SA-2026-0019.patch
|
|
102 |
"${FILESDIR}"/gst-plugins-base-1.26.11-GStreamer-SA-2026-0023.patch
|
| 95 |
103 |
)
|
| 96 |
104 |
|
| 97 |
105 |
multilib_src_configure() {
|
| ... | ... | |
| 116 |
124 |
|
| 117 |
125 |
if use opengl || use gles2; then
|
| 118 |
126 |
# because meson doesn't like extraneous commas
|
| 119 |
|
local gl_api=( $(use opengl && echo opengl) $(use gles2 && echo gles2) )
|
| 120 |
|
local gl_platform=( $(use X && use opengl && echo glx) $(use egl && echo egl) )
|
|
127 |
local gl_api=(
|
|
128 |
$(usev opengl)
|
|
129 |
$(usev gles2)
|
|
130 |
)
|
|
131 |
local gl_platform=(
|
|
132 |
$(use X && usev opengl glx)
|
|
133 |
$(usev egl)
|
|
134 |
)
|
| 121 |
135 |
local gl_winsys=(
|
| 122 |
|
$(use X && echo x11)
|
| 123 |
|
$(use wayland && echo wayland)
|
| 124 |
|
$(use egl && echo egl)
|
| 125 |
|
$(use gbm && echo gbm)
|
|
136 |
$(usev X x11)
|
|
137 |
$(usev wayland)
|
|
138 |
$(usev egl)
|
|
139 |
$(usev gbm)
|
| 126 |
140 |
)
|
| 127 |
141 |
|
| 128 |
142 |
emesonargs+=(
|
| ... | ... | |
| 141 |
155 |
)
|
| 142 |
156 |
fi
|
| 143 |
157 |
|
| 144 |
|
# Workaround EGL/eglplatform.h being built with X11 present
|
| 145 |
|
use X || export CFLAGS="${CFLAGS} -DEGL_NO_X11"
|
| 146 |
|
|
| 147 |
158 |
gstreamer_multilib_src_configure
|
| 148 |
159 |
}
|
| 149 |
160 |
|
| ... | ... | |
| 157 |
168 |
|
| 158 |
169 |
local -a _skip_tests=(
|
| 159 |
170 |
# flaky
|
|
171 |
elements_inputselector # tendency to timeout
|
|
172 |
elements_multisocketsink
|
|
173 |
generic_states
|
|
174 |
libs_gstglquery
|
| 160 |
175 |
pipelines_gl_launch_lines
|
| 161 |
176 |
)
|
| 162 |
177 |
|