2 # This is free software, licensed under the GNU General Public License v2.
5 include $(TOPDIR
)/rules.mk
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).zip
12 PKG_SOURCE_URL
:=https
://codeload.github.com
/nlohmann
/json
/zip
/v
$(PKG_VERSION
)?
13 PKG_HASH
:=95651d7d1fcf2e5c3163c3d37df6d6b3e9e5027299e6bd050d157322ceda9ac9
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/json-
$(PKG_VERSION
)
16 PKG_MAINTAINER
:=Leonid Esman
<leonid.esman@gmail.com
>
18 PKG_LICENSE_FILES
:=LICENSE.MIT
19 PKG_CPE_ID
:=cpe
:/a
:json-for-modern-cpp_project
:json-for-modern-cpp
21 include $(INCLUDE_DIR
)/package.mk
22 include $(INCLUDE_DIR
)/meson.mk
24 define Package
/nlohmannjson
27 TITLE
:=JSON for Modern C
++
28 URL
:=https
://nlohmann.github.io
/json
/
32 define Package
/nlohmannjson
/description
33 Niels Lohmann
's JSON headers-only library for modern C++
36 define Build/InstallDev
37 $(INSTALL_DIR) $(1)/usr/include/nlohmann
38 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/nlohmann/json.hpp $(1)/usr/include/nlohmann
39 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/nlohmann/json_fwd.hpp $(1)/usr/include/nlohmann
40 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
41 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nlohmann_json.pc $(1)/usr/lib/pkgconfig
44 $(eval $(call BuildPackage,nlohmannjson))