You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.2 KiB

  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=libinput
  6. PKG_VERSION:=1.19.3
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput
  10. PKG_HASH:=3cae78ccde19d7d0f387e58bc734d4d17ab5f6426f54a9e8b728c90b17baa068
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/meson.mk
  17. define Package/libinput
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=a library to handle input devices
  21. URL:=http://freedesktop.org/wiki/Software/libinput/
  22. DEPENDS:=+libevdev +mtdev +libudev
  23. endef
  24. define Package/libinput/description
  25. libinput is a library to handle input devices in Wayland compositors
  26. and to provide a generic X.Org input driver. It provides device
  27. detection, device handling, input device event processing and
  28. abstraction so minimize the amount of custom input code compositors
  29. need to provide the common set of functionality that users expect.
  30. endef
  31. MESON_ARGS += \
  32. -Depoll-dir=no \
  33. -Dlibwacom=false \
  34. -Ddebug-gui=false \
  35. -Dtests=false \
  36. -Dinstall-tests=false \
  37. -Ddocumentation=false \
  38. -Dcoverity=false \
  39. -Dzshcompletiondir=no
  40. define Build/InstallDev
  41. $(INSTALL_DIR) $(1)/usr/include
  42. $(CP) $(PKG_INSTALL_DIR)/usr/include/libinput.h $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libinput.so* $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libinput.pc $(1)/usr/lib/pkgconfig/
  47. endef
  48. define Package/libinput/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,libinput.so.*} $(1)/usr/lib
  51. $(INSTALL_DIR) $(1)/usr/libexec/libinput
  52. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/libexec/libinput/* $(1)/usr/libexec/libinput
  53. $(INSTALL_DIR) $(1)/usr/bin
  54. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libinput $(1)/usr/bin
  55. $(INSTALL_DIR) $(1)/usr/share/libinput
  56. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/libinput/* $(1)/usr/share/libinput
  57. endef
  58. $(eval $(call BuildPackage,libinput))