You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.4 KiB

  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-lib
  9. PKG_VERSION:=2014-08-12
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
  15. PKG_SOURCE_VERSION:=7bc0c0a45894ec10eb3fd3515428a087a24ac228
  16. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
  17. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/micropython-lib
  22. SECTION:=lang
  23. CATEGORY:=Languages
  24. TITLE:=micropython-lib
  25. URL:=https://github.com/micropython/micropython-lib
  26. DEPENDS:=+micropython
  27. endef
  28. define Package/micropython-lib/description
  29. This package contains micropython-lib, a project to develop a non-monolothic
  30. standard library for Micro Python. Note that this is a work in progress and
  31. several libraries may be missing, incomplete or buggy.
  32. endef
  33. MAKE_FLAGS:=\
  34. -C $(PKG_BUILD_DIR) \
  35. PREFIX=$(PKG_BUILD_DIR)/_install_tmp \
  36. install
  37. define Package/micropython-lib/install
  38. $(INSTALL_DIR) $(1)/usr/lib/micropython
  39. $(CP) $(PKG_BUILD_DIR)/_install_tmp/* $(1)/usr/lib/micropython
  40. endef
  41. $(eval $(call BuildPackage,micropython-lib))