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.

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