summaryrefslogtreecommitdiff
path: root/libs/jsoncpp
diff options
context:
space:
mode:
authorDaniel Engberg <daniel.engberg.lists@pyret.net>2018-12-30 13:45:42 +0100
committerDaniel Engberg <daniel.engberg.lists@pyret.net>2019-01-28 14:01:36 +0100
commit200a75cc966feab190fc6728c74e97655c1e2949 (patch)
tree83157fe8eeb1fdb065d65632daf70ce6f08c5224 /libs/jsoncpp
parent6c0c3cefbf927054dfe3ca1b40727e2d103b6b14 (diff)
jsoncpp: Add to repo
Add (lib)jsoncpp to repo Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Diffstat (limited to 'libs/jsoncpp')
-rw-r--r--libs/jsoncpp/Makefile60
1 files changed, 60 insertions, 0 deletions
diff --git a/libs/jsoncpp/Makefile b/libs/jsoncpp/Makefile
new file mode 100644
index 000000000..f129ad712
--- /dev/null
+++ b/libs/jsoncpp/Makefile
@@ -0,0 +1,60 @@
+#
+# Copyright (C) 2019 Daniel Engberg <daniel.engberg.lists@pyret.net>
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=jsoncpp
+PKG_VERSION:=1.8.4
+PKG_RELEASE:=1
+PKG_MAINTAINER:=
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_SOURCE_URL:=https://codeload.github.com/open-source-parsers/jsoncpp/tar.gz/$(PKG_VERSION)?
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=c49deac9e0933bcb7044f08516861a2d560988540b23de2ac1ad443b219afdb6
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/jsoncpp
+ SECTION:=libs
+ CATEGORY:=Libraries
+ TITLE:=jsoncpp
+ URL:=https://github.com/open-source-parsers/jsoncpp
+ DEPENDS:=+libstdcpp
+endef
+
+define Package/jsoncpp/description
+ JsonCpp is a C++ library that allows manipulating
+ JSON values, including serialization and
+ deserialization to and from strings. It can also
+ preserve existing comment in
+ unserialization/serialization steps, making it a
+ convenient format to store user input files.
+endef
+
+CMAKE_OPTIONS += \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_STATIC_LIBS:BOOL=OFF \
+ -DJSONCPP_WITH_TESTS:BOOL=OFF
+
+define Package/jsoncpp/install
+ $(INSTALL_DIR) $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjsoncpp.so* $(1)/usr/lib/
+endef
+
+define Build/InstallDev
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/json $(1)/usr/include
+ $(INSTALL_DIR) $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjsoncpp.so* $(1)/usr/lib/
+ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/jsoncpp.pc $(1)/usr/lib/pkgconfig/
+endef
+
+$(eval $(call BuildPackage,jsoncpp))