No Description

Makefile 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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-20140822-$(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:=46ede279d8fae081319914d00cb4a9bb22102fa1
  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. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=micropython-lib
  26. URL:=https://github.com/micropython/micropython-lib
  27. DEPENDS:=+micropython
  28. endef
  29. define Package/micropython-lib/description
  30. This package contains micropython-lib, a project to develop a non-monolothic
  31. standard library for Micro Python. Note that this is a work in progress and
  32. several libraries may be missing, incomplete or buggy.
  33. endef
  34. MAKE_FLAGS:=\
  35. -C $(PKG_BUILD_DIR) \
  36. PREFIX=$(PKG_BUILD_DIR)/_install_tmp \
  37. install
  38. define Package/micropython-lib/install
  39. $(INSTALL_DIR) $(1)/usr/lib/micropython
  40. $(CP) $(PKG_BUILD_DIR)/_install_tmp/* $(1)/usr/lib/micropython
  41. endef
  42. $(eval $(call BuildPackage,micropython-lib))