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.

63 lines
1.8 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:=1.3.1
  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:=458fc483f7227d3c4c330f4abd6dfa77
  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. CONFIGURE_ARGS += --disable-libwacom --disable-tests --disable-documentation
  22. define Package/libinput
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=a library to handle input devices
  26. URL:=http://freedesktop.org/wiki/Software/libinput/
  27. DEPENDS:=+libevdev +mtdev +libudev
  28. endef
  29. define Package/libinput/description
  30. libinput is a library to handle input devices in Wayland compositors
  31. and to provide a generic X.Org input driver. It provides device
  32. detection, device handling, input device event processing and
  33. abstraction so minimize the amount of custom input code compositors
  34. need to provide the common set of functionality that users expect.
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  39. $(INSTALL_DIR) $(1)/usr/lib
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{la,so*} $(1)/usr/lib/
  41. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
  43. endef
  44. define Package/libinput/install
  45. $(INSTALL_DIR) $(1)/usr/lib
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,*.so*} $(1)/usr/lib
  47. $(INSTALL_DIR) $(1)/usr/bin
  48. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  49. endef
  50. $(eval $(call BuildPackage,libinput))