First Commit
[librecmc/package-feed.git] / lang / micropython-lib / Makefile
1 #
2 # Copyright (C) 2008-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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=micropython-lib
11 PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
15 PKG_LICENSE:=MIT, PSFL
16 PKG_LICENSE_FILES:=LICENSE
17
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
20 PKG_SOURCE_VERSION:=f81e979c56dddb771ad36ec381b7f2c6cd12111f
21
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/micropython-lib
30     SUBMENU:=Python
31     SECTION:=lang
32     CATEGORY:=Languages
33     TITLE:=micropython-lib
34     URL:=https://github.com/micropython/micropython-lib
35     DEPENDS:=+micropython
36 endef
37
38 define Package/micropython-lib/description
39     This package contains micropython-lib, a project to develop a non-monolothic
40     standard library for Micro Python. Note that this is a work in progress and
41     several libraries may be missing, incomplete or buggy.
42 endef
43
44 MAKE_FLAGS:=\
45         -C $(PKG_BUILD_DIR) \
46         PREFIX=$(PKG_BUILD_DIR)/_install_tmp \
47         install
48
49 define Package/micropython-lib/install
50         $(INSTALL_DIR) $(1)/usr/lib/micropython
51         $(CP) $(PKG_BUILD_DIR)/_install_tmp/* $(1)/usr/lib/micropython
52 endef
53
54 $(eval $(call BuildPackage,micropython-lib))
55