source: branches/packages_10.03.1/lang/pyserial/Makefile @ 28432

Last change on this file since 28432 was 28432, checked in by nico, 5 years ago

[backfire/packages] pyserial: merge [28431]

File size: 1017 bytes
Line 
1#
2# Copyright (C) 2008-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=pyserial
11PKG_VERSION:=2.4
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/pyserial
16PKG_MD5SUM:=eec19df59fd75ba5a136992897f8e468
17
18PKG_BUILD_DEPENDS:=python
19
20include $(INCLUDE_DIR)/package.mk
21$(call include_mk, python-package.mk)
22
23define Package/pyserial
24  SUBMENU:=Python
25  SECTION:=lang
26  CATEGORY:=Languages
27  TITLE:=pyserial
28  URL:=http://pyserial.sourceforge.net
29  DEPENDS:=+python-mini
30endef
31
32define Package/pyserial/description
33  serial port python bindings
34endef
35
36define Build/Compile
37        $(call Build/Compile/PyMod,., \
38                install --prefix="/usr" --root="$(PKG_INSTALL_DIR)", \
39        )
40endef
41
42define Package/pyserial/install
43        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
44        $(CP) \
45            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
46            $(1)$(PYTHON_PKG_DIR)/
47endef
48
49$(eval $(call BuildPackage,pyserial))
Note: See TracBrowser for help on using the repository browser.