diff options
author | Igor V. Kovalenko <igor.v.kovalenko@gmail.com> | 2022-02-19 12:49:30 +0300 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-03-08 13:32:19 +0000 |
commit | 93b6417f1b55aefc05b91fec7b67eadd32b1f733 (patch) | |
tree | 2aa4e2a88378a5d76295ee10fc7b91f2ac40c259 /media-libs | |
parent | media-libs/libfreeaptx: Change to multilib build (diff) | |
download | gentoo-93b6417f1b55aefc05b91fec7b67eadd32b1f733.tar.gz gentoo-93b6417f1b55aefc05b91fec7b67eadd32b1f733.tar.bz2 gentoo-93b6417f1b55aefc05b91fec7b67eadd32b1f733.zip |
media-libs/gstreamer: Bump to 1.20.0
Gstreamer 1.20.0 version bump, includes
- all existing 1.18.4 plugins except for two dropped upstream
(gst-plugins-libmms and gst-plugins-ofa)
- libnice-0.1.18 version bump required by gst-plugins-webrtc in 1.20.0
- required multilib change for libldac for new plugin gst-plugins-ldac
- required multilib change for libopenaptx and libfreeaptx for new plugin
gst-plugins-openaptx
As discussed, this change adds a LICENSE to each of gstreamer modules which
now require explicit opt-in for (A)GPL plugins for (A)GPL plugins we will not
perform explicit license acceptance for affected gstreamer plugin, instead we
will rely on a user accepting the license of dependency:
- gstreamer change added explicit opt-in https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1084
- I looked at affected gstreamer plugins and looks like all are correctly
license-compatible according to compatibility matrix https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility
- if a user is not willing to accept the license of corresponding (A)GPL
dependency, such dependency will not be available and affected gstreamer
plugin will not be built
- Upstream gstreamer team will look into updating/fixing plugin license display
available via gst-inspect-1.0 <plugin name> | grep License as currently it is
just "GPL" which is not specific enough (should be GPL-2, GPL-2+, GPL-3 etc.)
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
12 files changed, 447 insertions, 0 deletions
diff --git a/media-libs/gst-plugins-bad/Manifest b/media-libs/gst-plugins-bad/Manifest index 58d6f817bb83..04556c3ce5a8 100644 --- a/media-libs/gst-plugins-bad/Manifest +++ b/media-libs/gst-plugins-bad/Manifest @@ -1,3 +1,4 @@ DIST gst-plugins-bad-1.16.3.tar.xz 4900188 BLAKE2B 7d8280a434adb1cb65b065dcdabdb37aad000802c011bb27779c109978d8b75aa4e2fa47043dde95464bb0c34a0d7466dc1f6216f29f0f4911f7a6fe1fb04b25 SHA512 378d8813ba2fd61ea2cab512d5c1fa81e0a4ac4f4ca756547d9b8742e56024c1bc5d6cd332798de66ecfe2b69485c860e181a6c2090398b0e2ad8c4b3fe95d04 DIST gst-plugins-bad-1.18.4-glib-volatile.patch.bz2 8492 BLAKE2B 7a6e4a3fc1d68c39ae08cb052eed1fcef9c5507c655525bcb48ab789f20027632136fb195643dc5d2e04728b4c3ac94b1dcbf9a14343333fb80d65c64244e1c8 SHA512 0d9e04b883a803cec518469f46dbcf47bfef614694cad6b2bb6e8cb31c3fcc80b0f3d81633b16cd05ca0516f49893aa67f4745dc22e80192ed385fb97ee8b97c DIST gst-plugins-bad-1.18.4.tar.xz 5640292 BLAKE2B 5385abe635a35f61c6780e6cfa1189835877b8c0a12145de6890708a097fc453b1abfb14a3497cae4e6961f71fc2c6e01759fe19386cd30a64c4069704ddf77a SHA512 02123e054419f5ce6ca2ebe0bdf23572269ea4120bf463b4d672efbe5d9e5d417d4d711cc80094be974c4569f754d8b2ad93f59b827e3b018d450582834cb125 +DIST gst-plugins-bad-1.20.0.tar.xz 6203880 BLAKE2B 3c2bcbd5e3af56497415ac9e32b91bf0f9ed0668d6992c8d14b2b56c86be2178ea93409e505d438b56fe87bf75a4c96554fd3cbf9ea5b204b2a520fccb6894fe SHA512 d79fedba96517c25d2ba3925405933671fa05e350b8e133277a7c1d509e08a49ceeb50c016e23e798667fa0b09783105914f06538bdcaae969fdba8ac385a51b diff --git a/media-libs/gst-plugins-bad/files/gst-plugins-bad-1.20.0-move-qroverlay-to-external-deps.patch b/media-libs/gst-plugins-bad/files/gst-plugins-bad-1.20.0-move-qroverlay-to-external-deps.patch new file mode 100644 index 000000000000..7ac5d68d7f74 --- /dev/null +++ b/media-libs/gst-plugins-bad/files/gst-plugins-bad-1.20.0-move-qroverlay-to-external-deps.patch @@ -0,0 +1,26 @@ +commit e30ce28b1f4b0373390499f49317f8fa12b02155 +Author: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> +Date: Sat Feb 5 17:36:41 2022 +0300 + + gst-plugins-bad-1.20.0-move-qroverlay-to-external-deps + +diff --git a/subprojects/gst-plugins-bad/meson_options.txt b/subprojects/gst-plugins-bad/meson_options.txt +index 4686492244..b347dcb27b 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -48,7 +48,6 @@ option('onvif', type : 'feature', value : 'auto') + option('pcapparse', type : 'feature', value : 'auto') + option('pnm', type : 'feature', value : 'auto') + option('proxy', type : 'feature', value : 'auto') +-option('qroverlay', type : 'feature', value : 'auto') + option('rawparse', type : 'feature', value : 'auto') + option('removesilence', type : 'feature', value : 'auto') + option('rist', type : 'feature', value : 'auto') +@@ -140,6 +139,7 @@ option('openmpt', type : 'feature', value : 'auto', description : 'OpenMPT modul + option('openni2', type : 'feature', value : 'auto', description : 'OpenNI2 library plugin') + option('opensles', type : 'feature', value : 'auto', description : 'OpenSL ES audio source/sink plugin') + option('opus', type : 'feature', value : 'auto', description : 'OPUS audio parser plugin') ++option('qroverlay', type : 'feature', value : 'auto', description : 'Element to set random data on a qroverlay') + option('resindvd', type : 'feature', value : 'auto', description : 'Resin DVD playback plugin (GPL - only built if gpl option is also enabled!)') + option('rsvg', type : 'feature', value : 'auto', description : 'SVG overlayer and image decoder plugin') + option('rtmp', type : 'feature', value : 'auto', description : 'RTMP video network source and sink plugin') diff --git a/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.0.ebuild b/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.0.ebuild new file mode 100644 index 000000000000..d35110a72c16 --- /dev/null +++ b/media-libs/gst-plugins-bad/gst-plugins-bad-1.20.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2021 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} ) +inherit flag-o-matic 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 ~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 + +# 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.4 + ) + + orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] ) +" + +DEPEND="${RDEPEND}" + +BDEPEND=" + ${PYTHON_DEPS} + dev-util/glib-utils + >=dev-util/gtk-doc-am-1.12 +" + +# FIXME: gstharness.c:889:gst_harness_new_with_padnames: assertion failed: (element != NULL) +RESTRICT="test" + +# Fixes backported to 1.20.0, to be removed in 1.20.1 +PATCHES=( + "${FILESDIR}/gst-plugins-bad-1.20.0-move-qroverlay-to-external-deps.patch" +) + +src_prepare() { + default + addpredict /dev # Prevent sandbox violations bug #570624 +} + +multilib_src_configure() { + GST_PLUGINS_NOAUTO="shm ipcpipeline librfb hls" + local emesonargs=( + -Dshm=enabled + -Dipcpipeline=enabled + -Dhls=disabled + $(meson_feature vnc librfb) + + $(meson_feature wayland) + ) + + 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() { + DOCS="AUTHORS ChangeLog NEWS README RELEASE" + einstalldocs + find "${ED}" -name '*.la' -delete || die +} diff --git a/media-libs/gst-plugins-base/Manifest b/media-libs/gst-plugins-base/Manifest index b5169db2edc8..16e7dbff8e45 100644 --- a/media-libs/gst-plugins-base/Manifest +++ b/media-libs/gst-plugins-base/Manifest @@ -1,2 +1,3 @@ DIST gst-plugins-base-1.16.3.tar.xz 3953616 BLAKE2B c78713d0aa77a7e8c8043377a7b7959e8159baa3c3b81751b6dc825137c26fe8e52d3ff2c9c734bdda1d01a087b67d1bce4da66de390aad8169c74001c8f620c SHA512 d44d4da9cb27a6b8e59cb3f0714cc71809c0f14b42ef8d4a2dddbb940efbcb9634a40596d3cdc7391016f6e758005c14aabe1f8f30bb597a57d85c2d94045e75 DIST gst-plugins-base-1.18.4.tar.xz 3169512 BLAKE2B 8b5a7a08641532631842e2ec02379b116ae0f08cda7654d123dbb2d56f97667b94ffc716b389a14ad034d0edb36587d8edc2c4f53782135c53def248fa60d0a3 SHA512 c750d68404462807ff03f441e232c4d98752a9bceeec3038fb37a105942f25499bde0660ca688b6f3204c58eb6a2e3f33671e979018c8bd829e7591455961a6a +DIST gst-plugins-base-1.20.0.tar.xz 3286080 BLAKE2B 52d5b7c80538ddea1699cc279756d69a4db6478298e4b38961ed32e67d9612cf8ace5ac304d8131175fb759606e495de2365ea5d764e9ca085478db1fd3c2fc0 SHA512 d04b1a3ea6c4bc484aca820c5d3272e54824a6934d537bd6d39f6d542deb4a5f7f7854b88e2759e14f3e35adde72a56a2b0dd8fc5cf4c97473989a80a2195ebd diff --git a/media-libs/gst-plugins-base/gst-plugins-base-1.20.0.ebuild b/media-libs/gst-plugins-base/gst-plugins-base-1.20.0.ebuild new file mode 100644 index 000000000000..f7da3437fc17 --- /dev/null +++ b/media-libs/gst-plugins-base/gst-plugins-base-1.20.0.ebuild @@ -0,0 +1,150 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GST_ORG_MODULE="gst-plugins-base" + +inherit flag-o-matic gstreamer-meson + +DESCRIPTION="Basepack of plugins for gstreamer" +HOMEPAGE="https://gstreamer.freedesktop.org/" + +LICENSE="GPL-2+ LGPL-2+" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" + +# For OpenGL we have three separate concepts, with a list of possibilities in each: +# * 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 +# * opengl platforms - glx and/or egl; also cgl, wgl, eagl for non-linux; USE="X opengl" enables glx platform; USE="egl" enables egl platform. Rest is up for relevant prefix teams. +# * opengl windowing system - x11, wayland, win32, cocoa, android, viv_fb, gbm and/or dispmanx; USE=X enables x11 (but for WSI it's automagic - FIXME), USE=wayland enables wayland, USE=gbm enables gbm (automagic upstream - FIXME); rest is up for relevant prefix/arch teams/contributors to test and provide patches +# With the following limitations: +# * If opengl and/or gles2 is enabled, a platform has to be enabled - x11 or egl in our case, but x11 (glx) is acceptable only with opengl +# * If opengl and/or gles2 is enabled, a windowing system has to be enabled - x11, wayland or gbm in our case +# * glx platform requires opengl API +# * wayland, gbm and most other non-glx WSIs require egl platform +# Additionally there is optional dmabuf support with egl for additional dmabuf based upload/download/eglimage options; +# and optional graphene usage for gltransformation and glvideoflip elements and more GLSL Uniforms support in glshader; +# and libpng/jpeg are required for gloverlay element; + +# Keep default IUSE options for relevant ones mirrored with gst-plugins-gtk and gst-plugins-bad +IUSE="alsa +egl gbm gles2 +introspection ivorbis +ogg +opengl +orc +pango theora +vorbis wayland +X" +GL_REQUIRED_USE=" + || ( gbm wayland X ) + wayland? ( egl ) + gbm? ( egl ) +" +REQUIRED_USE=" + ivorbis? ( ogg ) + theora? ( ogg ) + vorbis? ( ogg ) + opengl? ( || ( egl X ) ${GL_REQUIRED_USE} ) + gles2? ( egl ${GL_REQUIRED_USE} ) +" + +# Dependencies needed by opengl library and plugin (enabled via USE gles2 and/or opengl) +# dmabuf automagic from libdrm headers (drm_fourcc.h) and EGL, so ensure it with USE=egl (platform independent header used only, thus no MULTILIB_USEDEP); provides dmabuf based upload/download/eglimage options +GL_DEPS=" + >=media-libs/mesa-9.0[egl(+)?,gbm(+)?,gles2?,wayland?,${MULTILIB_USEDEP}] + egl? ( + x11-libs/libdrm + ) + gbm? ( + >=dev-libs/libgudev-147[${MULTILIB_USEDEP}] + >=x11-libs/libdrm-2.4.55[${MULTILIB_USEDEP}] + ) + wayland? ( + dev-libs/wayland[${MULTILIB_USEDEP}] + >=dev-libs/wayland-protocols-1.15 + ) + + >=media-libs/graphene-1.4.0[${MULTILIB_USEDEP}] + media-libs/libpng:0[${MULTILIB_USEDEP}] + virtual/jpeg:0[${MULTILIB_USEDEP}] +" # graphene for optional gltransformation and glvideoflip elements and more GLSL Uniforms support in glshader; libpng/jpeg for gloverlay element +# >=media-libs/graphene-1.4.0[${MULTILIB_USEDEP}] + +RDEPEND=" + app-text/iso-codes + >=dev-libs/glib-2.40.0:2[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-1.31.1:= ) + ivorbis? ( >=media-libs/tremor-0_pre20130223[${MULTILIB_USEDEP}] ) + ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] ) + orc? ( >=dev-lang/orc-0.4.24[${MULTILIB_USEDEP}] ) + pango? ( >=x11-libs/pango-1.36.3[${MULTILIB_USEDEP}] ) + theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] ) + vorbis? ( >=media-libs/libvorbis-1.3.3-r1[${MULTILIB_USEDEP}] ) + X? ( + >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] + >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] + >=x11-libs/libXv-1.0.10[${MULTILIB_USEDEP}] + ) + + gles2? ( ${GL_DEPS} ) + opengl? ( ${GL_DEPS} ) + + !<media-libs/gst-plugins-bad-1.15.0:1.0 +" +DEPEND="${RDEPEND} + dev-util/glib-utils + >=dev-util/gtk-doc-am-1.12 + X? ( x11-base/xorg-proto ) +" + +DOCS="AUTHORS NEWS README RELEASE" + +# Fixes backported to 1.20.0, to be removed in 1.20.1 +PATCHES=( +) + +multilib_src_configure() { + filter-flags -mno-sse -mno-sse2 -mno-sse4.1 #610340 + + # opus: split to media-plugins/gst-plugins-opus + GST_PLUGINS_NOAUTO="alsa ogg pango theora vorbis x11 xshm xvideo" + local emesonargs=( + -Dtools=enabled + + $(meson_feature alsa) + $(meson_feature ogg) + $(meson_feature orc) + $(meson_feature pango) + $(meson_feature theora) + $(meson_feature vorbis) + $(meson_feature X x11) + $(meson_feature X xshm) + $(meson_feature X xvideo) + ) + + if use opengl || use gles2; then + # because meson doesn't likes extraneous commas + local gl_api=( $(use opengl && echo opengl) $(use gles2 && echo gles2) ) + local gl_platform=( $(use X && echo glx) $(use egl && echo egl) ) + local gl_winsys=( + $(use X && echo x11) + $(use wayland && echo wayland) + $(use egl && echo egl) + $(use gbm && echo gbm) + ) + + emesonargs+=( + -Dgl=enabled + -Dgl-graphene=enabled + -Dgl_api=$(IFS=, ; echo "${gl_api[*]}") + -Dgl_platform=$(IFS=, ; echo "${gl_platform[*]}") + -Dgl_winsys=$(IFS=, ; echo "${gl_winsys[*]}") + ) + else + emesonargs+=( + -Dgl=disabled + -Dgl_api= + -Dgl_platform= + -Dgl_winsys= + ) + fi + + # Workaround EGL/eglplatform.h being built with X11 present + use X || export CFLAGS="${CFLAGS} -DEGL_NO_X11" + + gstreamer_multilib_src_configure +} diff --git a/media-libs/gst-plugins-good/Manifest b/media-libs/gst-plugins-good/Manifest index fe7f1df89ecb..6baadb496453 100644 --- a/media-libs/gst-plugins-good/Manifest +++ b/media-libs/gst-plugins-good/Manifest @@ -1,2 +1,3 @@ DIST gst-plugins-good-1.16.3.tar.xz 3914676 BLAKE2B 52f18027f9d9a77e8b459a0a10fa7c1450dff2faf8a2a63134f833ad08b19985b7f0d3d2af4b766c9b8bf802d048fabd6f52ad5a7865eccd1fe0d26404b7b2de SHA512 3e0da4a4defc0ddea1c26dfc767fed732548654f4155452649777109a17d5b65b2fde895483a3e35dc1646de5a16e913cd2408f826251d46a99b7751b88dcb65 DIST gst-plugins-good-1.18.4.tar.xz 3277572 BLAKE2B 8acfb975d19eabc681184d0096328051a9a02e5f849599dbad1233a0e9254e1a2d2bef75d8afdc779a7ca01a71b15d1e83a843749c0ef5f7ab2b5818067ab898 SHA512 764c66383c93e57f9c5e7742002013e07e7b25750d6974d6c07744433e8ceb7570e829e68278e2bc5214f77158311a6b3bfb013d615cf66205d8d7a9e2d54b86 +DIST gst-plugins-good-1.20.0.tar.xz 3409288 BLAKE2B 39fa374cf77ac0803309c11c4b76d6af478b377f1f9891f27ac692c6584e7bccf5d3eca1842060ca893db45c2ac6a14e2295b7d46afb8f938765295f29249bdb SHA512 5cfec70a92b18fe944c571ed4a09837a6e6002ff0745a70de76cf6d4b16c8f5e470d32049d4e6634741139c89ae0c8bef95dd710f05586321f304f5054ecf26d diff --git a/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch b/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch new file mode 100644 index 000000000000..c431b1fb6bd7 --- /dev/null +++ b/media-libs/gst-plugins-good/files/gst-plugins-good-1.20.0-lame-feature-option.patch @@ -0,0 +1,23 @@ +commit d03971dac7b32a6ffcbf161853e017f65ae7c22f +Author: Heiko Becker <heirecka@exherbo.org> +Date: Fri Feb 11 21:35:54 2022 +0100 + + meson: Don't build lame plugin with -Dlame=disabled + + Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1686> + +diff --git a/ext/lame/meson.build b/ext/lame/meson.build +index 2169fde6f4..3290f17e1e 100644 +--- a/ext/lame/meson.build ++++ b/ext/lame/meson.build +@@ -1,5 +1,10 @@ ++lame_dep = dependency('', required: false) + lame_option = get_option('lame') + ++if lame_option.disabled() ++ subdir_done() ++endif ++ + lame_extra_c_args = [] + lame_dep = cc.find_library('mp3lame', required: false) + have_lame = cc.has_header_symbol('lame/lame.h', 'lame_init') diff --git a/media-libs/gst-plugins-good/gst-plugins-good-1.20.0.ebuild b/media-libs/gst-plugins-good/gst-plugins-good-1.20.0.ebuild new file mode 100644 index 000000000000..5ef70fe641cf --- /dev/null +++ b/media-libs/gst-plugins-good/gst-plugins-good-1.20.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GST_ORG_MODULE="gst-plugins-good" + +inherit flag-o-matic gstreamer-meson + +DESCRIPTION="Basepack of plugins for GStreamer" +HOMEPAGE="https://gstreamer.freedesktop.org/" + +LICENSE="LGPL-2.1+" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="+orc" + +RDEPEND=" + >=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP}] + >=app-arch/bzip2-1.0.6-r4[${MULTILIB_USEDEP}] + >=sys-libs/zlib-1.2.8-r1[${MULTILIB_USEDEP}] + orc? ( >=dev-lang/orc-0.4.17[${MULTILIB_USEDEP}] ) +" +DEPEND="${RDEPEND} + >=dev-util/gtk-doc-am-1.12 +" + +DOCS="AUTHORS ChangeLog NEWS README RELEASE" + +# Fixes backported to 1.20.0, to be removed in 1.20.1+ +PATCHES=( + "${FILESDIR}/gst-plugins-good-1.20.0-lame-feature-option.patch" +) + +multilib_src_configure() { + GST_PLUGINS_NOAUTO="bz2" + local emesonargs=( + -Dbz2=enabled + + # gst-plugins-ximagesrc + -Dximagesrc=disabled + -Dximagesrc-xshm=disabled + -Dximagesrc-xfixes=disabled + -Dximagesrc-xdamage=disabled + + # gst-plugins-v4l2 + -Dv4l2=disabled + ) + + gstreamer_multilib_src_configure +} + +multilib_src_install_all() { + einstalldocs + find "${ED}" -name '*.la' -delete || die +} diff --git a/media-libs/gst-plugins-ugly/Manifest b/media-libs/gst-plugins-ugly/Manifest index d6be25e36be0..354d5431e06b 100644 --- a/media-libs/gst-plugins-ugly/Manifest +++ b/media-libs/gst-plugins-ugly/Manifest @@ -1,2 +1,3 @@ DIST gst-plugins-ugly-1.16.3.tar.xz 899124 BLAKE2B f848c7bbf36cdfca6e3dec4893b9b1bdc363feb697ee7cc89f4c664aa7aa700b76678873e5dae23f277ad99d6034c1e3617d760acc9cd075e0044fae3f4bb88d SHA512 0223f4ceebd1482329cfc7c3faa094d9f3b1d3eaa51eab3ff42da781f0aede8e838221bdc8d1a3ffc43318fb424421447d5548ebaf9ecaf8a290975d178df9ca DIST gst-plugins-ugly-1.18.4.tar.xz 509920 BLAKE2B a7aec6ac6e5739205c9567072596a8fb6dfcabc2f56ee0800c430c9bfc9549bf7ac75cb65719dadeb84036130d5b58f9be574f2a6531992ee7a8f23e9fb32d16 SHA512 eac02000ac3e0a54a953fe1531cb29bc6bc9913a707d1508905bf64fe0a4ef92f7d01b196259fc217fac8a344f0b2d683dd6d32210ce6b8c0acab08cb3b1322a +DIST gst-plugins-ugly-1.20.0.tar.xz 502056 BLAKE2B af817568bcc6d24c8fc7ba45382b3a06a50bcd3154aff24d4a430cf2f43dbee784db640517e6c6405a038ed5b3e358c2ae9e0556479c24f20214b77e83edb307 SHA512 a5da400fb59733ec3433ebe40e1fd33e81429d24fbf00dc81c17b7e03e6ca0ce385782b0d3af8d7860c7780b7110872ddcdf0f3f55e60121bcded53d6acdc90d diff --git a/media-libs/gst-plugins-ugly/gst-plugins-ugly-1.20.0.ebuild b/media-libs/gst-plugins-ugly/gst-plugins-ugly-1.20.0.ebuild new file mode 100644 index 000000000000..ed6f477ca94b --- /dev/null +++ b/media-libs/gst-plugins-ugly/gst-plugins-ugly-1.20.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +GST_ORG_MODULE="gst-plugins-ugly" +PYTHON_COMPAT=( python3_{8,9,10} ) +inherit gstreamer-meson python-any-r1 + +DESCRIPTION="Basepack of plugins for gstreamer" +HOMEPAGE="https://gstreamer.freedesktop.org/" + +LICENSE="LGPL-2+" # some split plugins are LGPL but combining with a GPL library +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" + +IUSE="+orc" + +RDEPEND=" + >=media-libs/gst-plugins-base-${PV}:${SLOT}[${MULTILIB_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + ${PYTHON_DEPS} + >=dev-util/gtk-doc-am-1.12 +" + +DOCS="AUTHORS ChangeLog NEWS README RELEASE" + +multilib_src_install_all() { + einstalldocs + find "${ED}" -name '*.la' -delete || die +} diff --git a/media-libs/gstreamer/Manifest b/media-libs/gstreamer/Manifest index 7d170d36e78b..cce96c7f4f0b 100644 --- a/media-libs/gstreamer/Manifest +++ b/media-libs/gstreamer/Manifest @@ -1,2 +1,3 @@ DIST gstreamer-1.16.3.tar.xz 3338692 BLAKE2B 79eb08bc446073fadf881adea0f60a2caf6384836df975f80ce0e57db6469e6a016cab38413d3de00d11b491a0281f95dcbcd1f782b31f2d1a07b866c1ed7dd5 SHA512 4a879e71f65c89609c2e106dc79222853e6f37830638d5b9624c436fc9d8974cc6474d399eff02cdc13ff7189fcd13e9450450d36c3a6092aa53cb97056f5854 DIST gstreamer-1.18.4.tar.xz 2703948 BLAKE2B b11be1309e7a6ad0aff24aa99b10b1c16df4b1720b821421a72ec9d9b20087488901bb4667e797d32ef616f909c3aefd301fac6be9c4c4120ec9e4af3acc7b48 SHA512 5312c621fc354b35cc81f53b4ec65c661ad2c22acef2640bc27860234243d06e00e3aaf41c93d379d8424c0ecdf2ae06096dec0d0313215426348ffa0afb3c4a +DIST gstreamer-1.20.0.tar.xz 2671356 BLAKE2B 84601ff4f684db94e9d5ccf771c101edc1ff6f37897e8c1e12e1e54731061d2770d1732e5d4c0ae71b1237021e22f65b3904aaf17f9a21515d9a5aa86d822d50 SHA512 40967627087aadbc65eee63caee2ada0c1bd398745209f045bbb44f2c78805a1959c58b5fd22ae30cec3f45b797abafb2e643c8670ecb138839f3e764989b630 diff --git a/media-libs/gstreamer/gstreamer-1.20.0.ebuild b/media-libs/gstreamer/gstreamer-1.20.0.ebuild new file mode 100644 index 000000000000..1685855ab71f --- /dev/null +++ b/media-libs/gstreamer/gstreamer-1.20.0.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit gstreamer-meson pax-utils + +DESCRIPTION="Open source multimedia framework" +HOMEPAGE="https://gstreamer.freedesktop.org/" +SRC_URI="https://${PN}.freedesktop.org/src/${PN}/${P}.tar.xz" + +LICENSE="LGPL-2+" +SLOT="1.0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x64-solaris ~x86-solaris" +IUSE="+caps +introspection +orc unwind" + +RDEPEND=" + caps? ( sys-libs/libcap[${MULTILIB_USEDEP}] ) + introspection? ( >=dev-libs/gobject-introspection-1.31.1:= ) + unwind? ( + >=sys-libs/libunwind-1.2_rc1[${MULTILIB_USEDEP}] + dev-libs/elfutils[${MULTILIB_USEDEP}] + ) + !<media-libs/gst-plugins-bad-1.13.1:1.0 +" +DEPEND="${RDEPEND} + dev-util/glib-utils + >=dev-util/gtk-doc-am-1.12 + sys-devel/bison + sys-devel/flex +" + +multilib_src_configure() { + local emesonargs=( + -Dbenchmarks=disabled + -Dexamples=disabled + -Dcheck=enabled + $(meson_feature unwind libunwind) + $(meson_feature unwind libdw) + ) + + if use caps ; then + emesonargs+=( -Dptp-helper-permissions=capabilities ) + else + emesonargs+=( + -Dptp-helper-permissions=setuid-root + -Dptp-helper-setuid-user=nobody + -Dptp-helper-setuid-group=nobody + ) + fi + + gstreamer_multilib_src_configure +} + +multilib_src_install() { + # can't do "default", we want to install docs in multilib_src_install_all + DESTDIR="${D}" eninja install + + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 + use orc && pax-mark -m "${ED}/usr/$(get_libdir)/gstreamer-${SLOT}/gst-plugin-scanner" +} + +multilib_src_install_all() { + DOCS="AUTHORS ChangeLog NEWS MAINTAINERS README RELEASE" + einstalldocs + find "${ED}" -name '*.la' -delete || die + + # Needed for orc-using gst plugins on hardened/PaX systems, bug #421579 + use orc && pax-mark -m "${ED}/usr/bin/gst-launch-${SLOT}" +} |