summaryrefslogtreecommitdiff
path: root/dev-qt
diff options
context:
space:
mode:
authorJimi Huotari <chiitoo@gentoo.org>2023-06-19 00:12:55 +0300
committerJimi Huotari <chiitoo@gentoo.org>2023-06-19 00:27:54 +0300
commitd737dff582c6112aec0c87524177121d59a3b1a7 (patch)
tree636c4b275fa742860bb63676f7be55c58cd7ae28 /dev-qt
parentmedia-video/mplayer: add 1.5_p20230618 (diff)
downloadgentoo-d737dff582c6112aec0c87524177121d59a3b1a7.tar.gz
gentoo-d737dff582c6112aec0c87524177121d59a3b1a7.tar.bz2
gentoo-d737dff582c6112aec0c87524177121d59a3b1a7.zip
dev-qt/qtmultimedia: add USE="vaapi" to 6.5.1
Closes: https://bugs.gentoo.org/908376 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Diffstat (limited to 'dev-qt')
-rw-r--r--dev-qt/qtmultimedia/qtmultimedia-6.5.1-r1.ebuild65
1 files changed, 65 insertions, 0 deletions
diff --git a/dev-qt/qtmultimedia/qtmultimedia-6.5.1-r1.ebuild b/dev-qt/qtmultimedia/qtmultimedia-6.5.1-r1.ebuild
new file mode 100644
index 000000000000..1091cf2d5cf6
--- /dev/null
+++ b/dev-qt/qtmultimedia/qtmultimedia-6.5.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 2021-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qt6-build
+
+DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt6 framework"
+
+if [[ ${QT6_BUILD_TYPE} == release ]]; then
+ KEYWORDS="~amd64"
+fi
+
+IUSE="alsa +ffmpeg gstreamer pulseaudio v4l vaapi"
+
+REQUIRED_USE="
+ || ( ffmpeg gstreamer )
+ vaapi? ( ffmpeg )
+"
+
+RDEPEND="
+ =dev-qt/qtbase-${PV}*[gui,network,widgets]
+ =dev-qt/qtdeclarative-${PV}*
+ =dev-qt/qtquick3d-${PV}*
+ =dev-qt/qtshadertools-${PV}*
+ =dev-qt/qtsvg-${PV}*
+ alsa? ( media-libs/alsa-lib )
+ ffmpeg? (
+ media-libs/libva:=
+ media-video/ffmpeg:=
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXrandr
+ )
+ gstreamer? (
+ dev-libs/glib:2
+ media-libs/gstreamer:1.0
+ media-libs/gst-plugins-bad:1.0
+ media-libs/gst-plugins-base:1.0
+ media-libs/libglvnd
+ )
+ pulseaudio? ( media-libs/libpulse[glib] )
+ vaapi? (
+ =dev-qt/qtbase-${PV}*[opengl]
+ media-libs/libglvnd
+ media-libs/libva:=
+ )
+"
+DEPEND="${RDEPEND}
+ gstreamer? ( x11-base/xorg-proto )
+ v4l? ( sys-kernel/linux-headers )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ $(qt_feature alsa)
+ $(qt_feature ffmpeg)
+ $(qt_feature gstreamer)
+ $(qt_feature v4l linux_v4l)
+ $(qt_feature pulseaudio)
+ $(qt_feature vaapi)
+ )
+
+ qt6-build_src_configure
+}