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.

54 lines
1.5 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.5.6
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libevdev/
  10. PKG_HASH:=ecec7e9d66b1d3692f10b3b20aa97fb25e874a784c5552a7b1698091fef5a688
  11. PKG_LICENSE:=MIT
  12. PKG_LICENSE_FILES:=COPYING
  13. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libevdev
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=a wrapper library for evdev devices
  21. URL:=http://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. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)/usr/include
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
  35. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  37. endef
  38. define Package/libevdev/install
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  41. endef
  42. $(eval $(call BuildPackage,libevdev))