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.

50 lines
1.2 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:=2.7
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
  12. PKG_LICENSE:=Python-2.0
  13. PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
  14. PKG_SOURCE_URL:=http://pypi.python.org/packages/source/p/pyserial/
  15. PKG_MD5SUM:=794506184df83ef2290de0d18803dd11
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/pyserial-$(PKG_VERSION)
  17. PKG_BUILD_DEPENDS:=python
  18. include $(INCLUDE_DIR)/package.mk
  19. $(call include_mk, python-package.mk)
  20. define Package/python-pyserial
  21. SUBMENU:=Python
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=python-pyserial
  25. URL:=http://pyserial.sourceforge.net
  26. DEPENDS:=+python-light
  27. endef
  28. define Package/python-pyserial/description
  29. serial port python bindings
  30. endef
  31. define Build/Compile
  32. $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
  33. endef
  34. define Package/python-pyserial/install
  35. $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
  36. $(CP) \
  37. $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
  38. $(1)$(PYTHON_PKG_DIR)
  39. endef
  40. $(eval $(call BuildPackage,python-pyserial))