Browse Source

python-evdev: use PYTHON[3]_PKG_SETUP_GLOBAL_ARGS vars for build

This is a minor cleanup.
Use PYTHON[3]_PKG_SETUP_GLOBAL_ARGS variable to specify extra build args.

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
lilik-openwrt-22.03
Alexandru Ardelean 6 years ago
parent
commit
83c349caee
1 changed files with 7 additions and 12 deletions
  1. +7
    -12
      lang/python/python-evdev/Makefile

+ 7
- 12
lang/python/python-evdev/Makefile View File

@ -63,19 +63,14 @@ $(call Package/python-evdev/description)
(Variant for Python3)
endef
define PyBuild/Compile
$(call Build/Compile/PyMod,, build \
build_ecodes --evdev-headers="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h" \
build_ext \
install --root="$(PKG_INSTALL_DIR)" --prefix="/usr")
endef
LINUX_EVDEV_HEADERS="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h"
define Py3Build/Compile
$(call Build/Compile/Py3Mod,, build \
build_ecodes --evdev-headers="$(LINUX_DIR)/include/uapi/linux/input.h:$(LINUX_DIR)/include/uapi/linux/input-event-codes.h" \
build_ext \
install --root="$(PKG_INSTALL_DIR)" --prefix="/usr")
endef
PYTHON3_PKG_SETUP_GLOBAL_ARGS:= \
build build_ecodes \
--evdev-headers="$(LINUX_EVDEV_HEADERS)" \
build_ext
PYTHON_PKG_SETUP_GLOBAL_ARGS:=$(PYTHON3_PKG_SETUP_GLOBAL_ARGS)
$(eval $(call PyPackage,python-evdev))
$(eval $(call BuildPackage,python-evdev))


Loading…
Cancel
Save