summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-qt/qt5/qtmultimedia.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-qt/qt5/qtmultimedia.inc b/recipes-qt/qt5/qtmultimedia.inc
index 87269850..66133f4b 100644
--- a/recipes-qt/qt5/qtmultimedia.inc
+++ b/recipes-qt/qt5/qtmultimedia.inc
@@ -1,13 +1,17 @@
1require qt5.inc 1require qt5.inc
2 2
3DEPENDS += "qtdeclarative gstreamer gst-plugins-base alsa-lib " 3DEPENDS += "qtdeclarative alsa-lib"
4 4
5PACKAGECONFIG ??= "" 5PACKAGECONFIG ??= ""
6PACKAGECONFIG[openal] = ",,openal-soft" 6PACKAGECONFIG[openal] = ",,openal-soft"
7PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base"
7 8
8do_configure_prepend() { 9do_configure_prepend() {
9 # disable openal test if it isn't enabled by PACKAGECONFIG 10 # disable openal test if it isn't enabled by PACKAGECONFIG
10 sed -i 's/^qtCompileTest(openal)/OE_OPENAL_ENABLED:qtCompileTest(openal)/g' ${S}/qtmultimedia.pro 11 sed -i 's/^qtCompileTest(openal)/OE_OPENAL_ENABLED:qtCompileTest(openal)/g' ${S}/qtmultimedia.pro
12 # disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG
13 sed -i 's/^\( *\)qtCompileTest(gstreamer)/\1OE_GSTREAMER010_ENABLED:qtCompileTest(gstreamer) {/g' ${S}/qtmultimedia.pro
11} 14}
12 15
13EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}" 16EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}"
17EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'CONFIG+=OE_GSTREAMER010_ENABLED', '', d)}"