From 83c349caee6b9cd0df92122df7596d8455a08725 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Wed, 24 Apr 2019 11:56:15 +0300 Subject: [PATCH] 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 --- lang/python/python-evdev/Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/lang/python/python-evdev/Makefile b/lang/python/python-evdev/Makefile index 38ba1ae709..6f062d1c55 100644 --- a/lang/python/python-evdev/Makefile +++ b/lang/python/python-evdev/Makefile @@ -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)) -- 2.30.2