From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EA7AB1580FD for ; Tue, 24 Dec 2024 10:20:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79331E0817; Tue, 24 Dec 2024 10:20:42 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5C01CE0817 for ; Tue, 24 Dec 2024 10:20:42 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 730D733C4EE for ; Tue, 24 Dec 2024 10:20:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DE1791954 for ; Tue, 24 Dec 2024 10:20:37 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1735035615.08095775d3048952f72a298f60e148b4e7262459.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/gst-plugins-vaapi/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-plugins/gst-plugins-vaapi/Manifest media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.22.12.ebuild X-VCS-Directories: media-plugins/gst-plugins-vaapi/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 08095775d3048952f72a298f60e148b4e7262459 X-VCS-Branch: master Date: Tue, 24 Dec 2024 10:20:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7049da5b-b947-4439-8723-0fd0e6908022 X-Archives-Hash: 543b6cf0f5806d47b676fedd47fd212f commit: 08095775d3048952f72a298f60e148b4e7262459 Author: Sam James gentoo org> AuthorDate: Tue Dec 24 10:15:46 2024 +0000 Commit: Sam James gentoo org> CommitDate: Tue Dec 24 10:20:15 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08095775 media-plugins/gst-plugins-vaapi: add 1.22.12 Signed-off-by: Sam James gentoo.org> media-plugins/gst-plugins-vaapi/Manifest | 1 + .../gst-plugins-vaapi-1.22.12.ebuild | 101 +++++++++++++++++++++ 2 files changed, 102 insertions(+) diff --git a/media-plugins/gst-plugins-vaapi/Manifest b/media-plugins/gst-plugins-vaapi/Manifest index fa134e65fe57..65abdeb59d6b 100644 --- a/media-plugins/gst-plugins-vaapi/Manifest +++ b/media-plugins/gst-plugins-vaapi/Manifest @@ -1 +1,2 @@ DIST gstreamer-vaapi-1.22.11.tar.xz 552468 BLAKE2B 0353699651add70639a4f7d591eccb646f5d6cda3ba8832553597b7b4e9bd3ebfe07d9eb1ac6e078219ee630131d502adccc8106a2207bb0234353905bafd8cd SHA512 939b748fea88c94ad59c1d4610a872a794b383382096a8f5f011a21d4c8fb041c28e1aa9a8d54f519fb3e48a69ed79622b0d45be01d2d5a900738a7928401563 +DIST gstreamer-vaapi-1.22.12.tar.xz 556192 BLAKE2B d8a1a0cb6616f001b1bc98febcb50c61e3af222f9461e8bb9b9d7cb43fd907f115eae76e1c069108fc98370432a82d4a754135a4e755f66d0a3107f205372793 SHA512 6253a97918cf8da5d063bfb9e3e8809c43610cc6495181319e7f198f43395637664ba867b210eaa72d74138dd9be4c39e3cd2d9e6d889ce4a06b0c2ad577f47a diff --git a/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.22.12.ebuild b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.22.12.ebuild new file mode 100644 index 000000000000..0b2bbaa48bca --- /dev/null +++ b/media-plugins/gst-plugins-vaapi/gst-plugins-vaapi-1.22.12.ebuild @@ -0,0 +1,101 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit gstreamer-meson + +MY_PN="gstreamer-vaapi" +DESCRIPTION="Hardware accelerated video decoding through VA-API plugin for GStreamer" +HOMEPAGE="https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi" +SRC_URI="https://gstreamer.freedesktop.org/src/${MY_PN}/${MY_PN}-${PV}.tar.xz" + +LICENSE="LGPL-2.1+" +SLOT="1.0" +KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86" +IUSE="+drm +egl +gles2 opengl wayland +X" # Keep default enabled IUSE in sync with gst-plugins-base and libva + +# gst-vaapi configure is based around GL platform mainly, unlike gst-plugins-bad that goes by GL API mainly; for less surprises, +# we design gst-vaapi ebuild in terms of GL API as main choice as well, meaning that USE opengl and/or gles2 is required to +# enable opengl support at all and choices get chained from there. +# One or multiple video output are required: drm, x11, glx, egl and/or wayland; +# but GL API is our main trigger, thus USE=egl should be ineffective if neither gles2 or opengl is enabled; +# So "|| ( drm egl opengl wayland X )" would be wrong, because egl isn't built with USE="egl -opengl -gles2", ending up with no video outputs. +# As we ensure at least one working GL output with other REQUIRED_USE, we can put gles2/opengl in REQUIRED_USE instead of egl, solving the issue. +# gles2 API only supported windowing system (on linux) is EGL, so require it +# opengl API only supported windowing systems (on linux) are EGL and GLX, so require one of them (glx is enabled with USE="opengl X") +REQUIRED_USE=" + || ( drm gles2 opengl wayland X ) + gles2? ( egl ) + opengl? ( || ( egl X ) ) + wayland? ( drm ) +" + +# glx doesn't require libva-glx (libva[opengl]) afaics, only by tests/test-display.c +# USE flag behavior: +# 'drm' enables vaapi drm support +# 'egl' enables EGL platform support (but only if also 'opengl||gles2') +# - 'egl' is exposed as a USE flag mainly to get EGL support instead of or in addition to GLX support with desktop GL while keeping it optional for pure GLX cases; +# it's always required with USE=gles2, thus USE="gles2 opengl X" will require and build desktop GL EGL platform support as well on top of GLX, which doesn't add extra deps at that point. +# 'gles2' enables GLESv2 or GLESv3 based GL API support +# 'opengl' enables desktop OpenGL based GL API support +# 'wayland' enables non-GL Wayland support; wayland EGL support when combined with 'egl' (but only if also 'opengl||gles2') +# 'X' enables non-GL X support; GLX support when combined with 'opengl' +# gst-plugins-bad still needed for codecparsers (GL libraries moved to -base); checked for 1.14 (recheck for 1.16) +GST_REQ="${PV}" +GL_DEPS=" + >=media-libs/gst-plugins-base-${GST_REQ}:${SLOT}[egl?,gles2?,opengl?,wayland?,X?] + || ( + >=media-libs/mesa-24.1.0_rc1[opengl,X?,${MULTILIB_USEDEP}] +