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.15.5
  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:=a90efc8f423c3094f2f9f372fb92381b2f3aad62e8b5882a8abe333aa8249c97
  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/* $(1)/usr/include/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(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,*.so*} $(1)/usr/lib
  52. $(INSTALL_DIR) $(1)/usr/bin
  53. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  54. endef
  55. $(eval $(call BuildPackage,libinput))