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.

59 lines
1.7 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:=libevdev
  6. PKG_VERSION:=1.11.0
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=https://www.freedesktop.org/software/libevdev/
  10. PKG_HASH:=63f4ea1489858a109080e0b40bd43e4e0903a1e12ea888d581db8c495747c2d0
  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/libevdev
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=a wrapper library for evdev devices
  21. URL:=https://www.freedesktop.org/wiki/Software/libevdev/
  22. endef
  23. define Package/libevdev/description
  24. libevdev is a wrapper library for evdev devices. it moves the common
  25. tasks when dealing with evdev devices into a library and provides a
  26. library interface to the callers, thus avoiding erroneous ioctls, etc.
  27. The eventual goal is that libevdev wraps all ioctls available to
  28. evdev devices, thus making direct access unnecessary.
  29. endef
  30. MESON_ARGS += \
  31. -Dtests=disabled \
  32. -Ddocumentation=disabled \
  33. -Dcoverity=false
  34. define Build/InstallDev
  35. $(INSTALL_DIR) $(1)/usr/include/libevdev-1.0/libevdev
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/libevdev-1.0/libevdev/*.h $(1)/usr/include/libevdev-1.0/libevdev
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so* $(1)/usr/lib/
  39. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libevdev.pc $(1)/usr/lib/pkgconfig/
  41. endef
  42. define Package/libevdev/install
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libevdev.so.* $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,libevdev))