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.

38 lines
955 B

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. #
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=nlohmannjson
  6. PKG_VERSION:=3.7.3
  7. PKG_RELEASE:=1
  8. PKG_MAINTAINER:=Leonid Esman <leonid.esman@gmail.com>
  9. PKG_LICENSE:=MIT
  10. PKG_LICENSE_FILES:=LICENSE.MIT
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/json-$(PKG_VERSION)
  12. PKG_SOURCE:=json-$(PKG_VERSION).zip
  13. PKG_SOURCE_URL:=https://codeload.github.com/nlohmann/json/zip/v$(PKG_VERSION)?
  14. PKG_HASH:=e109cd4a9d1d463a62f0a81d7c6719ecd780a52fb80a22b901ed5b6fe43fb45b
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/nlohmannjson
  17. SECTION:=libs
  18. CATEGORY:=Libraries
  19. TITLE:=JSON for Modern C++
  20. URL:=https://nlohmann.github.io/json/
  21. endef
  22. define Package/nlohmannjson/description
  23. Niels Lohmann's JSON headers-only library for modern C++
  24. endef
  25. define Build/InstallDev
  26. $(INSTALL_DIR) $(1)/usr/include
  27. $(CP) $(PKG_BUILD_DIR)/include/nlohmann $(1)/usr/include
  28. endef
  29. $(eval $(call BuildPackage,nlohmannjson))