noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[feed/packages.git] / lang / python / micropython / 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
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
16 PKG_LICENSE_FILES:=LICENSE
17
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
20 PKG_SOURCE_VERSION:=5a1d63fc14dae788f705403a43c2d8639b7dd9cd
21
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)
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/micropython
30 SUBMENU:=Python
31 SECTION:=lang
32 CATEGORY:=Languages
33 TITLE:=Micro Python
34 URL:=http://micropython.org
35 DEPENDS:=+libffi
36 endef
37
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).
41 endef
42
43
44 MAKE_FLAGS += -C $(PKG_BUILD_DIR)/unix
45
46 define Build/Compile
47 $(call Build/Compile/Default,axtls)
48 $(call Build/Compile/Default)
49
50 endef
51
52 define Package/micropython/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython
55 endef
56
57 $(eval $(call BuildPackage,micropython))