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.

39 lines
970 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.8.0
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=json-$(PKG_VERSION).zip
  9. PKG_SOURCE_URL:=https://codeload.github.com/nlohmann/json/zip/v$(PKG_VERSION)?
  10. PKG_HASH:=83947cb78d50990b4b931b8dbc8632781bc601baa45b75ece0899c7b98d86c0b
  11. PKG_BUILD_DIR:=$(BUILD_DIR)/json-$(PKG_VERSION)
  12. PKG_MAINTAINER:=Leonid Esman <leonid.esman@gmail.com>
  13. PKG_LICENSE:=MIT
  14. PKG_LICENSE_FILES:=LICENSE.MIT
  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. BUILDONLY:=1
  22. endef
  23. define Package/nlohmannjson/description
  24. Niels Lohmann's JSON headers-only library for modern C++
  25. endef
  26. define Build/InstallDev
  27. $(INSTALL_DIR) $(1)/usr/include
  28. $(CP) $(PKG_BUILD_DIR)/include/nlohmann $(1)/usr/include
  29. endef
  30. $(eval $(call BuildPackage,nlohmannjson))