package/xapp_xfd: add optional xlib_libxkbfile dependency
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 16 Mar 2019 18:25:24 +0000 (19:25 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 17 Mar 2019 11:15:34 +0000 (12:15 +0100)
Fixes:
 - http://autobuild.buildroot.org/results/6a487750c0f08f1a87ae4e30e139e5a1a6004b81

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/x11r7/xapp_xfd/xapp_xfd.mk

index 84b4a777709fd06cea78b24b201a234d1317573b..8bea7a2fa757c791269bfe7e0e3248e8aa94d788 100644 (file)
@@ -12,4 +12,11 @@ XAPP_XFD_LICENSE_FILES = COPYING
 XAPP_XFD_DEPENDENCIES = freetype fontconfig xlib_libXaw xlib_libXft
 XAPP_XFD_CONF_OPTS = --with-appdefaultdir=/usr/share/X11/app-defaults
 
+ifeq ($(BR2_PACKAGE_XLIB_LIBXKBFILE),y)
+XAPP_XFD_CONF_OPTS += --with-xkb
+XAPP_XFD_DEPENDENCIES += xlib_libxkbfile
+else
+XAPP_XFD_CONF_OPTS += --without-xkb
+endif
+
 $(eval $(autotools-package))