aboutsummaryrefslogtreecommitdiff
blob: b6c1d6838c1a1e611d780f144aa774f96728af1e (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
# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

GST_ORG_MODULE=gst-plugins-good

inherit gstreamer-meson qmake-utils

DESCRIPTION="Qt5 QML video sink plugin for GStreamer"
KEYWORDS="~amd64"
IUSE="+egl wayland +X"

REQUIRED_USE="
	wayland? ( egl )
"

RDEPEND="
	>=media-libs/gst-plugins-base-${PV}:${SLOT}[egl?,opengl,wayland?,X?]
	media-libs/mesa[egl(+)?,X?]
	dev-qt/qtcore:5
	dev-qt/qtdeclarative:5
	dev-qt/qtgui:5
	egl? ( dev-qt/qtgui:5[eglfs] )
	wayland? ( dev-qt/qtwayland:5 )
	X? ( dev-qt/qtx11extras:5 )
"
DEPEND="${RDEPEND}"

GST_PLUGINS_BUILD_DIR="qt"

src_prepare() {
	export PATH="${PATH}:$(qt5_get_bindir)"
	default
}