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.

45 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. PKG_BUILD_DEPENDS:=meson/host
  17. include $(INCLUDE_DIR)/package.mk
  18. include ../../devel/meson/meson.mk
  19. define Package/nlohmannjson
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=JSON for Modern C++
  23. URL:=https://nlohmann.github.io/json/
  24. BUILDONLY:=1
  25. endef
  26. define Package/nlohmannjson/description
  27. Niels Lohmann's JSON headers-only library for modern C++
  28. endef
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include/nlohmann
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/nlohmann/json.hpp $(1)/usr/include/nlohmann
  32. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  33. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nlohmann_json.pc $(1)/usr/lib/pkgconfig
  34. endef
  35. $(eval $(call BuildPackage,nlohmannjson))