mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
gtk+: Add PACKAGECONFIG for directfb
* building without x11 doesn't work, because it sets default gdkbackend to x11 and then requires cairo-xlib to be available * checking for CAIRO_BACKEND... no configure: error: Package requirements (cairo-xlib >= 1.6) were not met: No package 'cairo-xlib' found (From OE-Core rev: 345b27ac4f7439f8676b4506540b0c1ced75c0db) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7f4ff1a5c5
commit
b20ba9c4e5
@@ -14,9 +14,13 @@ X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender
|
||||
DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \
|
||||
cairo gdk-pixbuf"
|
||||
|
||||
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
|
||||
PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
|
||||
${@base_contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
|
||||
# without --with-gdktarget=directfb it will check for cairo-xlib which isn't available without X11 DISTRO_FEATURE
|
||||
PACKAGECONFIG[directfb] = "--with-gdktarget=directfb,,directfb"
|
||||
|
||||
inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user