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.

71 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.18.0
  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:=18c6a286583268d39841348e561fbb4713bde0c643b360f5d8a3f27800afdb9a
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=COPYING
  14. PKG_INSTALL:=1
  15. PKG_BUILD_DEPENDS:=meson/host
  16. include $(INCLUDE_DIR)/package.mk
  17. include ../../devel/meson/meson.mk
  18. define Package/libinput
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=a library to handle input devices
  22. URL:=http://freedesktop.org/wiki/Software/libinput/
  23. DEPENDS:=+libevdev +mtdev +libudev
  24. endef
  25. define Package/libinput/description
  26. libinput is a library to handle input devices in Wayland compositors
  27. and to provide a generic X.Org input driver. It provides device
  28. detection, device handling, input device event processing and
  29. abstraction so minimize the amount of custom input code compositors
  30. need to provide the common set of functionality that users expect.
  31. endef
  32. MESON_ARGS += \
  33. -Depoll-dir=no \
  34. -Dlibwacom=false \
  35. -Ddebug-gui=false \
  36. -Dtests=false \
  37. -Dinstall-tests=false \
  38. -Ddocumentation=false \
  39. -Dcoverity=false \
  40. -Dzshcompletiondir=no
  41. define Build/InstallDev
  42. $(INSTALL_DIR) $(1)/usr/include
  43. $(CP) $(PKG_INSTALL_DIR)/usr/include/libinput.h $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libinput.so* $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libinput.pc $(1)/usr/lib/pkgconfig/
  48. endef
  49. define Package/libinput/install
  50. $(INSTALL_DIR) $(1)/usr/lib
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,libinput.so.*} $(1)/usr/lib
  52. $(INSTALL_DIR) $(1)/usr/libexec/libinput
  53. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/libexec/libinput/* $(1)/usr/libexec/libinput
  54. $(INSTALL_DIR) $(1)/usr/bin
  55. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libinput $(1)/usr/bin
  56. $(INSTALL_DIR) $(1)/usr/share/libinput
  57. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/libinput/* $(1)/usr/share/libinput
  58. endef
  59. $(eval $(call BuildPackage,libinput))