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.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.9.0
  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:=e7e18a64264f2dea19b6c50a481f8c062529d42919ccda0bc861495bce28eb9e
  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
  37. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  40. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  42. endef
  43. define Package/libevdev/install
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,libevdev))