source: packages/lang/pyusb/Makefile @ 20223

Last change on this file since 20223 was 20223, checked in by thepeople, 6 years ago

add pyusb, from #6767

File size: 972 bytes
Line 
1#
2# Copyright (C) 2010 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:=pyusb
11PKG_VERSION:=0.4.2
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=@SF/pyusb
16PKG_MD5SUM:=5667a00af1ac0d5062103b4512e227f8
17PKG_BUILD_DEPENDS:=python
18
19include $(INCLUDE_DIR)/package.mk
20$(call include_mk, python-package.mk)
21
22define Package/pyusb
23  SUBMENU:=Python
24  SECTION:=lang
25  CATEGORY:=Languages
26  TITLE:=pyusb
27  URL:=http://pyusb.sourceforge.net
28  DEPENDS:=+python-mini +libusb
29endef
30
31define Package/pyusb/description
32  usb port python bindings
33endef
34
35define Build/Compile
36        $(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
37endef
38
39define Package/pyusb/install
40        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
41        $(CP) \
42            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
43            $(1)$(PYTHON_PKG_DIR)
44endef
45
46$(eval $(call BuildPackage,pyusb))
Note: See TracBrowser for help on using the repository browser.