No Description

Makefile 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2008-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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=micropython
  9. PKG_VERSION=1.3.7-20141209-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_LICENSE_FILES:=LICENSE
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
  16. PKG_SOURCE_VERSION:=e6e8ad8ab238cd596a3eedf8f4dd635e2e84f46e
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  18. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  19. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/micropython
  23. SUBMENU:=Python
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Micro Python
  27. URL:=http://micropython.org
  28. DEPENDS:=+libffi
  29. endef
  30. define Package/micropython/description
  31. This package contains Micro Python, a lean and fast implementation of the Python 3.4 programming language
  32. that is optimised to run on a microcontroller (and low power computers).
  33. endef
  34. MAKE_FLAGS += \
  35. -C $(PKG_BUILD_DIR)/unix \
  36. MICROPY_USE_READLINE=0
  37. define Package/micropython/install
  38. $(INSTALL_DIR) $(1)/usr/bin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/unix/micropython $(1)/usr/bin/micropython
  40. endef
  41. $(eval $(call BuildPackage,micropython))