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.

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