Merge pull request #20349 from turris-cz/unbound-1171
[feed/packages.git] / lang / python / python-evdev / Makefile
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.6.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:=299db8628cc73b237fc1cc57d3c2948faa0756e2a58b6194b5bf81dc2081f1e3
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_SETUP_GLOBAL_ARGS:= \
43 build build_ecodes \
44 --evdev-headers="$(LINUX_EVDEV_HEADERS)" \
45 build_ext
46
47 $(eval $(call Py3Package,python3-evdev))
48 $(eval $(call BuildPackage,python3-evdev))
49 $(eval $(call BuildPackage,python3-evdev-src))