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. #
  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:=libinput
  9. PKG_VERSION:=0.18.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput/
  13. PKG_MD5SUM:=0ddbb0d53d58dec0a86de6791560011a
  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. TARGET_CFLAGS+= -std=gnu99
  21. define Package/libinput
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=a library to handle input devices
  25. URL:=http://freedesktop.org/wiki/Software/libinput/
  26. DEPENDS:=+libevdev +mtdev +udev
  27. endef
  28. define Package/libinput/description
  29. libinput is a library to handle input devices in Wayland compositors
  30. and to provide a generic X.Org input driver. It provides device
  31. detection, device handling, input device event processing and
  32. abstraction so minimize the amount of custom input code compositors
  33. need to provide the common set of functionality that users expect.
  34. endef
  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/*.{la,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/libinput/install
  44. $(INSTALL_DIR) $(1)/usr/lib/udev
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/udev/* $(1)/usr/lib/udev
  47. endef
  48. $(eval $(call BuildPackage,libinput))