2013-05-07 13:30:56 +00:00
|
|
|
require qt5.inc
|
2013-01-05 01:33:01 +00:00
|
|
|
|
2014-01-19 11:09:14 +00:00
|
|
|
DEPENDS += "qtdeclarative alsa-lib"
|
2013-07-22 12:55:26 +00:00
|
|
|
|
|
|
|
PACKAGECONFIG ??= ""
|
|
|
|
PACKAGECONFIG[openal] = ",,openal-soft"
|
2014-01-19 11:09:14 +00:00
|
|
|
PACKAGECONFIG[gstreamer010] = ",,gstreamer gst-plugins-base"
|
2013-07-22 12:55:26 +00:00
|
|
|
|
|
|
|
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
|
2014-01-19 11:09:14 +00:00
|
|
|
# disable gstreamer-0.10 test if it isn't enabled by PACKAGECONFIG
|
2014-01-29 15:23:30 +00:00
|
|
|
sed -i 's/^\( *\)qtCompileTest(gstreamer) {/\1OE_GSTREAMER010_ENABLED:qtCompileTest(gstreamer) {/g' ${S}/qtmultimedia.pro
|
2013-07-22 12:55:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'openal', 'CONFIG+=OE_OPENAL_ENABLED', '', d)}"
|
2014-01-19 11:09:14 +00:00
|
|
|
EXTRA_QMAKEVARS_PRE += "${@base_contains('PACKAGECONFIG', 'gstreamer010', 'CONFIG+=OE_GSTREAMER010_ENABLED', '', d)}"
|