libyami: Add PACKAGECONFIG for x11

Without this the recipe fails to build without x11, breaking world build.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
This commit is contained in:
Jussi Kukkonen 2017-04-18 11:09:54 +03:00 committed by Saul Wold
parent c7e6889290
commit e5f79bf5af

View File

@ -21,3 +21,10 @@ EXTRA_OECONF = " --enable-tests-gles --disable-md5"
inherit autotools pkgconfig distro_features_check
REQUIRED_DISTRO_FEATURES = "opengl"
PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
# --enable-x11 needs libva-x11
# gles-tests fail to build without x11: see https://github.com/01org/libyami-utils/issues/91
PACKAGECONFIG[x11] = "--enable-x11 --enable-tests-gles,--disable-x11 --disable-tests-gles, virtual/libx11"