mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Baeuerle, Florian" <Florian.Baeuerle@allegion.com>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH v3] jsoncpp: new package
Date: Fri, 8 Mar 2019 13:01:22 +0000	[thread overview]
Message-ID: <20190308130102.7615-1-florian.baeuerle@allegion.com> (raw)
In-Reply-To: <b9a20bb72c0d8c7f68e6267f54df5d7d72829a10.camel@allegion.com>

Signed-off-by: Florian Bäuerle <florian.baeuerle@allegion.com>
---
 rules/jsoncpp.in   | 11 ++++++++++
 rules/jsoncpp.make | 53 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 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..afdd3a149
--- /dev/null
+++ b/rules/jsoncpp.in
@@ -0,0 +1,11 @@
+## SECTION=system_libraries
+
+config JSONCPP
+	tristate
+	prompt "jsoncpp"
+	select HOST_MESON
+	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..0cf809e53
--- /dev/null
+++ b/rules/jsoncpp.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 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)
+
+# ----------------------------------------------------------------------------
+# 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

  reply	other threads:[~2019-03-08 13:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05  8:31 [ptxdist] [PATCH] " 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       ` Baeuerle, Florian [this message]
2019-03-08 14:21       ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190308130102.7615-1-florian.baeuerle@allegion.com \
    --to=florian.baeuerle@allegion.com \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox