1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 DESCRIPTION="Multimedia (audio, video, radio, camera) library for the Qt5 framework"
9 if [[ ${QT5_BUILD_TYPE} == release ]]; then
10 KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
13 IUSE="alsa gles2 gstreamer gstreamer010 openal pulseaudio qml widgets"
14 REQUIRED_USE="?? ( gstreamer gstreamer010 )"
18 ~dev-qt/qtgui-${PV}[gles2=]
19 ~dev-qt/qtnetwork-${PV}
20 alsa? ( media-libs/alsa-lib )
23 media-libs/gstreamer:1.0
24 media-libs/gst-plugins-bad:1.0
25 media-libs/gst-plugins-base:1.0
29 media-libs/gstreamer:0.10
30 media-libs/gst-plugins-bad:0.10
31 media-libs/gst-plugins-base:0.10
33 pulseaudio? ( media-sound/pulseaudio )
35 ~dev-qt/qtdeclarative-${PV}
36 gles2? ( ~dev-qt/qtgui-${PV}[egl] )
37 openal? ( media-libs/openal )
40 ~dev-qt/qtopengl-${PV}
41 ~dev-qt/qtwidgets-${PV}[gles2=]
45 gstreamer? ( x11-proto/videoproto )
49 # do not rely on qtbase configuration
50 sed -i -e 's/contains(QT_CONFIG, \(alsa\|pulseaudio\))://' \
51 qtmultimedia.pro || die
53 qt_use_compile_test alsa
54 qt_use_compile_test gstreamer
55 qt_use_compile_test openal
56 qt_use_compile_test pulseaudio
58 qt_use_disable_mod qml quick \
60 src/plugins/plugins.pro
62 qt_use_disable_mod widgets widgets \
64 src/gsttools/gsttools.pro \
65 src/plugins/gstreamer/common.pri
72 $(usex gstreamer 'GST_VERSION=1.0' '')
73 $(usex gstreamer010 'GST_VERSION=0.10' '')
75 qt5-build_src_configure