From 43872948d4bb764c723d122cac8dcc0cb1ed93c6 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Mon, 22 Jul 2013 14:55:26 +0200 Subject: qtmultimedia: add gst-plugins-base dependency and openal PACKAGECONFIG * this will need small patch in qtmultimedia.pro to run qtCompileTest(openal) only with OE_OPENAL_ENABLED Signed-off-by: Martin Jansa --- recipes-qt/qt5/qtmultimedia.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'recipes-qt') diff --git a/recipes-qt/qt5/qtmultimedia.inc b/recipes-qt/qt5/qtmultimedia.inc index 6a1a7375..87269850 100644 --- a/recipes-qt/qt5/qtmultimedia.inc +++ b/recipes-qt/qt5/qtmultimedia.inc @@ -1,3 +1,13 @@ require qt5.inc -DEPENDS += "qtdeclarative gstreamer alsa-lib " +DEPENDS += "qtdeclarative gstreamer gst-plugins-base alsa-lib " + +PACKAGECONFIG ??= "" +PACKAGECONFIG[openal] = ",,openal-soft" + +do_configure_prepend() { + # disable openal test if it isn't enabled by PACKAGECONFIG + sed -i 's/^qtCompileTest(openal)/OE_OPENAL_ENABLED:qtCompileTest(openal)/g' ${S}/qtmultimedia.pro +} + +EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}" -- cgit v1.2.3