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.

57 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2007-2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libevdev
  9. PKG_VERSION:=1.4.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libevdev/
  13. PKG_MD5SUM:=b66443bb664cfaf2ba7b3f8c238ea951
  14. PKG_LICENSE:=MIT
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libevdev
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=a wrapper library for evdev devices
  24. URL:=http://www.freedesktop.org/wiki/Software/libevdev/
  25. endef
  26. define Package/libevdev/description
  27. libevdev is a wrapper library for evdev devices. it moves the common
  28. tasks when dealing with evdev devices into a library and provides a
  29. library interface to the callers, thus avoiding erroneous ioctls, etc.
  30. The eventual goal is that libevdev wraps all ioctls available to
  31. evdev devices, thus making direct access unnecessary.
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so*} $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/libevdev/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,libevdev))