-# From https://lists.freedesktop.org/archives/wayland-devel/2021-August/041934.html
-sha256 9ca14021fbc2523bc0610582c51f368321592040b6ca63becc2fa1ea11f1a7cb libinput-1.18.1.tar.xz
-sha512 450e38c0f8245aa0165a8047d25aebee646332f0f2ed442bb2d1bd3e723c2082b6d00d6e3bda308981ece8e29b5cddbd56eab900d2b7497705a45fc27b281828 libinput-1.18.1.tar.xz
+# From https://lists.freedesktop.org/archives/wayland-devel/2021-September/041977.html
+sha256 3d3a2f12b4a65cd82684121ae4b33cdc3ad541c761a55e8eb73a8e5e443cccbb libinput-1.19.0.tar.xz
+sha512 daf42ce797f2b5aef8d6f7a5c0d967590581e6ac12c26fa6bde5fbc619d75319e39ca55d65d5347e554dd6a48b91f5fed4d3167eabef8ad1ebc43bc0c3e8e220 libinput-1.19.0.tar.xz
# License files
sha256 80de50b2022a840db044c56db804ca3565600a692c0714babface587acc6d1b0 COPYING
#
################################################################################
-LIBINPUT_VERSION = 1.18.1
+LIBINPUT_VERSION = 1.19.0
LIBINPUT_SOURCE = libinput-$(LIBINPUT_VERSION).tar.xz
LIBINPUT_SITE = http://www.freedesktop.org/software/libinput
LIBINPUT_DEPENDENCIES = host-pkgconf libevdev mtdev udev
ifeq ($(BR2_PACKAGE_LIBGTK3),y)
LIBINPUT_CONF_OPTS += -Ddebug-gui=true
LIBINPUT_DEPENDENCIES += libgtk3
+ifeq ($(BR2_PACKAGE_WAYLAND),y)
+LIBINPUT_DEPENDENCIES += wayland
+endif
+ifeq ($(BR2_PACKAGE_WAYLAND_PROTOCOLS),y)
+LIBINPUT_DEPENDENCIES += wayland-protocols
+endif
+ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
+LIBINPUT_DEPENDENCIES += libx11
+endif
else
LIBINPUT_CONF_OPTS += -Ddebug-gui=false
endif