2 # Copyright (C) 2017 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=python-evdev
15 PKG_LICENSE
:=BSD-3-Clause
16 PKG_MAINTAINER
:=Paulo Costa
<me@paulo.costa.nom.br
>, Alexandru Ardelean
<ardeleanalex@gmail.com
>
19 PKG_HASH
:=299db8628cc73b237fc1cc57d3c2948faa0756e2a58b6194b5bf81dc2081f1e3
22 include $(INCLUDE_DIR
)/package.mk
23 include ..
/python3-package.mk
25 define Package
/python3-evdev
30 URL
:=https
://github.com
/gvalkov
/python-evdev
36 define Package
/python3-evdev
/description
37 Bindings to the Linux input handling subsystem
40 LINUX_EVDEV_HEADERS
="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
42 PYTHON3_PKG_BUILD_CONFIG_SETTINGS
:= \
43 --global-option
=build \
44 --global-option
=build_ecodes \
45 --global-option
=--evdev-headers
="$(LINUX_EVDEV_HEADERS)" \
46 --global-option
=build_ext
48 $(eval
$(call Py3Package
,python3-evdev
))
49 $(eval
$(call BuildPackage
,python3-evdev
))
50 $(eval
$(call BuildPackage
,python3-evdev-src
))