2 # Copyright (C) 2008-2015 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
11 PKG_VERSION=1.8.6-$(PKG_SOURCE_VERSION)
14 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
16 PKG_LICENSE_FILES:=LICENSE
19 PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
20 PKG_SOURCE_VERSION:=5a1d63fc14dae788f705403a43c2d8639b7dd9cd
22 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
23 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
27 include $(INCLUDE_DIR)/package.mk
29 define Package/micropython
34 URL:=http://micropython.org
38 define Package/micropython/description
39 This package contains Micro Python, a lean and fast implementation of the Python 3.4 programming language
40 that is optimised to run on a microcontroller (and low power computers).
44 MAKE_FLAGS += -C $(PKG_BUILD_DIR)/unix
47 $(call Build/Compile/Default,axtls)
48 $(call Build/Compile/Default)
52 define Package/micropython/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython
57 $(eval $(call BuildPackage,micropython))