mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] jsoncpp: new package
@ 2019-03-05  8:31 Baeuerle, Florian
  2019-03-07 11:17 ` Michael Olbrich
  0 siblings, 1 reply; 7+ messages in thread
From: Baeuerle, Florian @ 2019-03-05  8:31 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 rules/jsoncpp.in   | 10 ++++++++
 rules/jsoncpp.make | 57 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 rules/jsoncpp.in
 create mode 100644 rules/jsoncpp.make

diff --git a/rules/jsoncpp.in b/rules/jsoncpp.in
new file mode 100644
index 000000000..c32e2d91c
--- /dev/null
+++ b/rules/jsoncpp.in
@@ -0,0 +1,10 @@
+## SECTION=system_libraries
+
+config JSONCPP
+	tristate
+	prompt "jsoncpp"
+	help
+	  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.
diff --git a/rules/jsoncpp.make b/rules/jsoncpp.make
new file mode 100644
index 000000000..99f5053f6
--- /dev/null
+++ b/rules/jsoncpp.make
@@ -0,0 +1,57 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Michael Olbrich <m.olbrich@pengutronix.de>
+#               2019 by Florian Baeuerle <florian.baeuerle@allegion.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_JSONCPP) += jsoncpp
+
+#
+# Paths and names
+#
+JSONCPP_VERSION		:= 1.8.4
+JSONCPP_MD5		:= fa47a3ab6b381869b6a5f20811198662
+JSONCPP			:= jsoncpp-$(JSONCPP_VERSION)
+JSONCPP_SUFFIX		:= tar.gz
+
+JSONCPP_URL		:= https://github.com/open-source-parsers/jsoncpp/archive/$(JSONCPP_VERSION).tar.gz
+JSONCPP_SOURCE		:= $(SRCDIR)/jsoncpp-src-$(JSONCPP_VERSION).$(JSONCPP_SUFFIX)
+JSONCPP_DIR		:= $(BUILDDIR)/$(JSONCPP)
+JSONCPP_LICENSE		:= MIT
+JSONCPP_LICENSE_FILES	:= file://LICENSE;md5=fa2a23dd1dc6c139f35105379d76df2b
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+JSONCPP_CONF_TOOL	:= meson
+JSONCPP_CONF_OPT	:= \
+	$(CROSS_MESON_USR) \
+	--buildtype=release \
+	--default-library=shared
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/jsoncpp.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, jsoncpp)
+	@$(call install_fixup, jsoncpp,PRIORITY,optional)
+	@$(call install_fixup, jsoncpp,SECTION,base)
+	@$(call install_fixup, jsoncpp,AUTHOR,"Florian Baeuerle <florian.baeuerle@allegion.com>")
+	@$(call install_fixup, jsoncpp,DESCRIPTION,missing)
+
+	@$(call install_lib, jsoncpp, 0, 0, 0644, libjsoncpp)
+	@$(call install_finish, jsoncpp)
+
+	@$(call touch)
-- 
2.21.0

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-03-08 14:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-05  8:31 [ptxdist] [PATCH] jsoncpp: new package Baeuerle, Florian
2019-03-07 11:17 ` Michael Olbrich
2019-03-07 12:42   ` Baeuerle, Florian
2019-03-07 12:48   ` [ptxdist] [PATCH v2] " Baeuerle, Florian
2019-03-08 12:59     ` Baeuerle, Florian
2019-03-08 13:01       ` [ptxdist] [PATCH v3] " Baeuerle, Florian
2019-03-08 14:21       ` [ptxdist] [PATCH v2] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox