2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/pyserial
16 PKG_MD5SUM:=eec19df59fd75ba5a136992897f8e468
18 PKG_BUILD_DEPENDS:=python
20 include $(INCLUDE_DIR)/package.mk
21 $(call include_mk, python-package.mk)
23 define Package/pyserial
28 URL:=http://pyserial.sourceforge.net
32 define Package/pyserial/description
33 serial port python bindings
37 $(call Build/Compile/PyMod,., \
38 install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
42 define Package/pyserial/install
43 $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
45 $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
46 $(1)$(PYTHON_PKG_DIR)/
49 $(eval $(call BuildPackage,pyserial))