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.

69 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=python-pyserial
  9. PKG_VERSION:=3.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://pypi.python.org/packages/cc/74/11b04703ec416717b247d789103277269d567db575d2fd88f25d9767fe3d/
  13. PKG_HASH:=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-pyserial-$(PKG_VERSION)
  15. PKG_LICENSE:=BSD
  16. PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../python-package.mk
  19. include ../python3-package.mk
  20. PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
  21. define Package/python-pyserial/Default
  22. SECTION:=lang-python
  23. CATEGORY:=Languages
  24. SUBMENU:=Python
  25. URL:=https://github.com/pyserial/pyserial
  26. endef
  27. define Package/python-pyserial
  28. $(call Package/python-pyserial/Default)
  29. TITLE:=python-pyserial
  30. DEPENDS:=+python-light
  31. VARIANT:=python
  32. endef
  33. define Package/python3-pyserial
  34. $(call Package/python-pyserial/Default)
  35. TITLE:=python3-pyserial
  36. DEPENDS:=+python3-light
  37. VARIANT:=python3
  38. endef
  39. define Package/python-pyserial/description
  40. This module encapsulates the access for the serial port. It provides backends
  41. for Python running on Windows, OSX, Linux, BSD (possibly any POSIX compliant
  42. system) and IronPython. The module named "serial" automatically selects the
  43. appropriate backend.
  44. endef
  45. define Package/python3-pyserial/description
  46. $(call Package/python-pyserial/description)
  47. .
  48. (Variant for Python3)
  49. endef
  50. $(eval $(call PyPackage,python-pyserial))
  51. $(eval $(call BuildPackage,python-pyserial))
  52. $(eval $(call BuildPackage,python-pyserial-src))
  53. $(eval $(call Py3Package,python3-pyserial))
  54. $(eval $(call BuildPackage,python3-pyserial))
  55. $(eval $(call BuildPackage,python3-pyserial-src))