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.

49 lines
1.2 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:=2
  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/python3-evdev
  20. SUBMENU:=Python
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=python3-evdev
  24. URL:=https://github.com/gvalkov/python-evdev
  25. DEPENDS:= \
  26. +python3-light \
  27. +python3-ctypes
  28. endef
  29. define Package/python3-evdev/description
  30. Bindings to the Linux input handling subsystem
  31. endef
  32. LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
  33. PYTHON3_PKG_SETUP_GLOBAL_ARGS:= \
  34. build build_ecodes \
  35. --evdev-headers="$(LINUX_EVDEV_HEADERS)" \
  36. build_ext
  37. $(eval $(call Py3Package,python3-evdev))
  38. $(eval $(call BuildPackage,python3-evdev))
  39. $(eval $(call BuildPackage,python3-evdev-src))