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.

44 lines
1.2 KiB

  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.9.1
  7. PKG_RELEASE:=1
  8. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
  9. PKG_SOURCE_URL:=https://codeload.github.com/nlohmann/json/zip/v$(PKG_VERSION)?
  10. PKG_HASH:=a88449d68aab8d027c5beefe911ba217f5ffcc0686ae1793d37f3d20698b37c6
  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. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/meson.mk
  18. define Package/nlohmannjson
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=JSON for Modern C++
  22. URL:=https://nlohmann.github.io/json/
  23. BUILDONLY:=1
  24. endef
  25. define Package/nlohmannjson/description
  26. Niels Lohmann's JSON headers-only library for modern C++
  27. endef
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include/nlohmann
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/nlohmann/json.hpp $(1)/usr/include/nlohmann
  31. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nlohmann_json.pc $(1)/usr/lib/pkgconfig
  33. endef
  34. $(eval $(call BuildPackage,nlohmannjson))