diff --git a/recipes-qt/qt5/qtmultimedia.inc b/recipes-qt/qt5/qtmultimedia.inc index 6a1a7375c3..87269850ab 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)}"