b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | include $(INCLUDE_DIR)/kernel.mk |
| 10 | |
| 11 | PKG_NAME:=python-evdev |
| 12 | PKG_VERSION:=1.7.1 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PKG_LICENSE:=BSD-3-Clause |
| 16 | PKG_MAINTAINER:=Paulo Costa <me@paulo.costa.nom.br>, Alexandru Ardelean <ardeleanalex@gmail.com> |
| 17 | |
| 18 | PYPI_NAME:=evdev |
| 19 | PKG_HASH:=0c72c370bda29d857e188d931019c32651a9c1ea977c08c8d939b1ced1637fde |
| 20 | |
| 21 | include ../pypi.mk |
| 22 | include $(INCLUDE_DIR)/package.mk |
| 23 | include ../python3-package.mk |
| 24 | |
| 25 | define Package/python3-evdev |
| 26 | SUBMENU:=Python |
| 27 | SECTION:=lang |
| 28 | CATEGORY:=Languages |
| 29 | TITLE:=python3-evdev |
| 30 | URL:=https://github.com/gvalkov/python-evdev |
| 31 | DEPENDS:= \ |
| 32 | +python3-light \ |
| 33 | +python3-ctypes |
| 34 | endef |
| 35 | |
| 36 | define Package/python3-evdev/description |
| 37 | Bindings to the Linux input handling subsystem |
| 38 | endef |
| 39 | |
| 40 | LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h" |
| 41 | |
| 42 | PYTHON3_PKG_BUILD_CONFIG_SETTINGS:= \ |
| 43 | --build-option=build \ |
| 44 | --build-option=build_ecodes \ |
| 45 | --build-option=--evdev-headers="$(LINUX_EVDEV_HEADERS)" \ |
| 46 | --build-option=build_ext |
| 47 | |
| 48 | $(eval $(call Py3Package,python3-evdev)) |
| 49 | $(eval $(call BuildPackage,python3-evdev)) |
| 50 | $(eval $(call BuildPackage,python3-evdev-src)) |