1
0

Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=micropython-lib
  9. PKG_VERSION=1.9-$(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:=f5fe55aaef1a39d3d56f07040c0ff9f7e841fdf7
  17. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
  18. PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.xz
  19. PKG_MIRROR_HASH:=76565b5d44d47ccf61562f98dcf166d8103760eed7f3d84f5f7f31610140d780
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)
  21. PKG_BUILD_PARALLEL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/micropython-lib
  24. SUBMENU:=Python
  25. SECTION:=lang
  26. CATEGORY:=Languages
  27. TITLE:=micropython-lib
  28. URL:=https://github.com/micropython/micropython-lib
  29. DEPENDS:=+micropython
  30. endef
  31. define Package/micropython-lib/description
  32. This package contains micropython-lib, a project to develop a non-monolothic
  33. standard library for Micro Python. Note that this is a work in progress and
  34. several libraries may be missing, incomplete or buggy.
  35. endef
  36. MAKE_FLAGS:=\
  37. PREFIX=$(PKG_BUILD_DIR)/_install_tmp/dist \
  38. install
  39. define Package/micropython-lib/install
  40. $(INSTALL_DIR) $(1)/usr/lib/micropython
  41. $(CP) $(PKG_BUILD_DIR)/_install_tmp/dist/* $(1)/usr/lib/micropython
  42. endef
  43. $(eval $(call BuildPackage,micropython-lib))