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
:=a88449d68aab8d027c5beefe911ba217f5ffcc0686ae1793d37f3d20698b37c6
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/json-
$(PKG_VERSION
)
16 PKG_MAINTAINER
:=Leonid Esman
<leonid.esman@gmail.com
>
18 PKG_LICENSE_FILES
:=LICENSE.MIT
21 PKG_BUILD_DEPENDS
:=meson
/host
23 include $(INCLUDE_DIR
)/package.mk
24 include ..
/..
/devel
/meson
/meson.mk
26 define Package
/nlohmannjson
29 TITLE
:=JSON for Modern C
++
30 URL
:=https
://nlohmann.github.io
/json
/
34 define Package
/nlohmannjson
/description
35 Niels Lohmann
's JSON headers-only library for modern C++
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include/nlohmann
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/nlohmann/json.hpp $(1)/usr/include/nlohmann
41 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/nlohmann_json.pc $(1)/usr/lib/pkgconfig
45 $(eval $(call BuildPackage,nlohmannjson))