You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. include $(INCLUDE_DIR)/kernel.mk
  3. PKG_NAME:=python-libmodbus
  4. PKG_VERSION:=0.5.0
  5. PKG_RELEASE:=1
  6. PKG_LICENSE:=BSD-3-Clause
  7. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  8. PYPI_NAME:=pylibmodbus
  9. PKG_HASH:=80f837304ffa8476145ea643f6b98aa94b205013a96f1e5173d7bdc776426aee
  10. include ../pypi.mk
  11. include $(INCLUDE_DIR)/package.mk
  12. include ../python-package.mk
  13. include ../python3-package.mk
  14. define Package/python-libmodbus/Default
  15. SUBMENU:=Python
  16. SECTION:=lang
  17. CATEGORY:=Languages
  18. URL:=https://pypi.org/project/pylibmodbus
  19. endef
  20. define Package/python-libmodbus
  21. $(call Package/python-libmodbus/Default)
  22. TITLE:=python-libmodbus
  23. DEPENDS:=+libmodbus \
  24. +PACKAGE_python-libmodbus:python-light \
  25. +PACKAGE_python-libmodbus:python-cffi
  26. VARIANT:=python
  27. endef
  28. define Package/python3-libmodbus
  29. $(call Package/python-libmodbus/Default)
  30. TITLE:=pylibmodbus
  31. DEPENDS:=+libmodbus \
  32. +PACKAGE_python3-libmodbus:python3-light \
  33. +PACKAGE_python3-libmodbus:python3-cffi
  34. VARIANT:=python3
  35. endef
  36. define Package/python-libmodbus/description
  37. Python Interface for libmodbus written with CFFI.
  38. endef
  39. define Package/python3-libmodbus/description
  40. $(call Package/python-libmodbus/description)
  41. .
  42. (Variant for Python3)
  43. endef
  44. $(eval $(call PyPackage,python-libmodbus))
  45. $(eval $(call BuildPackage,python-libmodbus))
  46. $(eval $(call Py3Package,python3-libmodbus))
  47. $(eval $(call BuildPackage,python3-libmodbus))