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.

67 lines
1.9 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.16.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput
  10. PKG_HASH:=7ba7d1aeedd15168bb21d17e9e628aa1c27957963a423a3fea3938a501758539
  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-fbsd
  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/bin
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/libinput $(1)/usr/bin
  54. endef
  55. $(eval $(call BuildPackage,libinput))