summaryrefslogtreecommitdiffstats
path: root/package/libxkbcommon/libxkbcommon.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libxkbcommon/libxkbcommon.mk')
-rw-r--r--package/libxkbcommon/libxkbcommon.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/libxkbcommon/libxkbcommon.mk b/package/libxkbcommon/libxkbcommon.mk
index 2d3050690..12d5f1614 100644
--- a/package/libxkbcommon/libxkbcommon.mk
+++ b/package/libxkbcommon/libxkbcommon.mk
@@ -15,4 +15,11 @@ LIBXKBCOMMON_DEPENDENCIES = host-bison host-flex
# uses C99 features
LIBXKBCOMMON_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+ifeq ($(BR2_PACKAGE_XORG7),y)
+LIBXKBCOMMON_CONF_OPTS += --enable-x11
+LIBXKBCOMMON_DEPENDENCIES += libxcb
+else
+LIBXKBCOMMON_CONF_OPTS += --disable-x11
+endif
+
$(eval $(autotools-package))