nghttp3: fix pkgconfig file
[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.11.2
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:=95651d7d1fcf2e5c3163c3d37df6d6b3e9e5027299e6bd050d157322ceda9ac9
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 PKG_CPE_ID:=cpe:/a:json-for-modern-cpp_project:json-for-modern-cpp
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/meson.mk
23
24 define Package/nlohmannjson
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=JSON for Modern C++
28 URL:=https://nlohmann.github.io/json/
29 BUILDONLY:=1
30 endef
31
32 define Package/nlohmannjson/description
33 Niels Lohmann's JSON headers-only library for modern C++
34 endef
35
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
42 endef
43
44 $(eval $(call BuildPackage,nlohmannjson))