Merge pull request #11353 from kvuorine/fwknop-fixes
[feed/packages.git] / libs / nlohmannjson / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 #
4
5 include $(TOPDIR)/rules.mk
6
7 PKG_NAME:=nlohmannjson
8 PKG_VERSION:=3.9.1
9 PKG_RELEASE:=1
10
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)
15
16 PKG_MAINTAINER:=Leonid Esman <leonid.esman@gmail.com>
17 PKG_LICENSE:=MIT
18 PKG_LICENSE_FILES:=LICENSE.MIT
19
20 PKG_INSTALL:=1
21 PKG_BUILD_DEPENDS:=meson/host
22
23 include $(INCLUDE_DIR)/package.mk
24 include ../../devel/meson/meson.mk
25
26 define Package/nlohmannjson
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=JSON for Modern C++
30 URL:=https://nlohmann.github.io/json/
31 BUILDONLY:=1
32 endef
33
34 define Package/nlohmannjson/description
35 Niels Lohmann's JSON headers-only library for modern C++
36 endef
37
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
43 endef
44
45 $(eval $(call BuildPackage,nlohmannjson))