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.8 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:=libinput
  6. PKG_VERSION:=1.7.3
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  9. PKG_SOURCE_URL:=http://www.freedesktop.org/software/libinput/
  10. PKG_HASH:=096d612d2711f0caa2de544976ff3729e6233511ab373808644cc2dd5affcb1d
  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. TARGET_CFLAGS+= -std=gnu99
  18. CONFIGURE_ARGS += --disable-libwacom --disable-tests --disable-documentation
  19. define Package/libinput
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=a library to handle input devices
  23. URL:=http://freedesktop.org/wiki/Software/libinput/
  24. DEPENDS:=+libevdev +mtdev +libudev-fbsd
  25. endef
  26. define Package/libinput/description
  27. libinput is a library to handle input devices in Wayland compositors
  28. and to provide a generic X.Org input driver. It provides device
  29. detection, device handling, input device event processing and
  30. abstraction so minimize the amount of custom input code compositors
  31. need to provide the common set of functionality that users expect.
  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/*.{la,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/libinput/install
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{udev,*.so*} $(1)/usr/lib
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
  46. endef
  47. $(eval $(call BuildPackage,libinput))