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.

56 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2017 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. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=python-evdev
  10. PKG_VERSION:=1.3.0
  11. PKG_RELEASE:=1
  12. PKG_LICENSE:=BSD-3-Clause
  13. PKG_MAINTAINER:=Paulo Costa <me@paulo.costa.nom.br>, Alexandru Ardelean <ardeleanalex@gmail.com>
  14. PYPI_NAME:=evdev
  15. PKG_HASH:=b1c649b4fed7252711011da235782b2c260b32e004058d62473471e5cd30634d
  16. include ../pypi.mk
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python3-package.mk
  19. define Package/python-evdev/Default
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. URL:=https://github.com/gvalkov/python-evdev
  24. endef
  25. define Package/python3-evdev
  26. $(call Package/python-evdev/Default)
  27. TITLE:=python3-evdev
  28. DEPENDS:= \
  29. +PACKAGE_python3-evdev:python3-light \
  30. +PACKAGE_python3-evdev:python3-ctypes
  31. VARIANT:=python3
  32. endef
  33. define Package/python3-evdev/description
  34. Bindings to the Linux input handling subsystem
  35. .
  36. (Variant for Python3)
  37. endef
  38. LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
  39. PYTHON3_PKG_SETUP_GLOBAL_ARGS:= \
  40. build build_ecodes \
  41. --evdev-headers="$(LINUX_EVDEV_HEADERS)" \
  42. build_ext
  43. $(eval $(call Py3Package,python3-evdev))
  44. $(eval $(call BuildPackage,python3-evdev))
  45. $(eval $(call BuildPackage,python3-evdev-src))