libinput.mk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ################################################################################
  2. #
  3. # libinput
  4. #
  5. ################################################################################
  6. LIBINPUT_VERSION = 1.23.0
  7. LIBINPUT_SOURCE = libinput-$(LIBINPUT_VERSION).tar.bz2
  8. LIBINPUT_SITE = https://gitlab.freedesktop.org/libinput/libinput/-/archive/$(LIBINPUT_VERSION)
  9. LIBINPUT_DEPENDENCIES = host-pkgconf libevdev mtdev udev
  10. LIBINPUT_INSTALL_STAGING = YES
  11. LIBINPUT_LICENSE = MIT
  12. LIBINPUT_LICENSE_FILES = COPYING
  13. LIBINPUT_CPE_ID_VENDOR = freedesktop
  14. # Tests need fork, so just disable them everywhere.
  15. LIBINPUT_CONF_OPTS = -Dtests=false -Dlibwacom=false -Ddocumentation=false
  16. ifeq ($(BR2_PACKAGE_LIBGTK3),y)
  17. LIBINPUT_CONF_OPTS += -Ddebug-gui=true
  18. LIBINPUT_DEPENDENCIES += libgtk3
  19. ifeq ($(BR2_PACKAGE_WAYLAND),y)
  20. LIBINPUT_DEPENDENCIES += wayland
  21. endif
  22. ifeq ($(BR2_PACKAGE_WAYLAND_PROTOCOLS),y)
  23. LIBINPUT_DEPENDENCIES += wayland-protocols
  24. endif
  25. ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
  26. LIBINPUT_DEPENDENCIES += xlib_libX11
  27. endif
  28. else
  29. LIBINPUT_CONF_OPTS += -Ddebug-gui=false
  30. endif
  31. ifeq ($(BR2_PACKAGE_LIBINPUT_PYTHON_TOOLS),)
  32. LIBINPUT_PYTHON_TOOLS = libinput-analyze-per-slot-delta \
  33. libinput-analyze-recording \
  34. libinput-analyze-touch-down-state \
  35. libinput-measure-fuzz \
  36. libinput-measure-touchpad-pressure \
  37. libinput-measure-touchpad-size \
  38. libinput-measure-touchpad-tap \
  39. libinput-measure-touch-size \
  40. libinput-replay
  41. define LIBINPUT_REMOVE_UNNEEDED_FILES
  42. $(foreach f,$(LIBINPUT_PYTHON_TOOLS), \
  43. rm -f $(TARGET_DIR)/usr/libexec/libinput/$(f)
  44. )
  45. endef
  46. LIBINPUT_POST_INSTALL_TARGET_HOOKS += LIBINPUT_REMOVE_UNNEEDED_FILES
  47. endif
  48. $(eval $(meson-package))