From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] jsoncpp: new package
Date: Thu, 7 Mar 2019 12:17:09 +0100 [thread overview]
Message-ID: <20190307111709.pgkbjr4u4xhhuymu@pengutronix.de> (raw)
In-Reply-To: <20190305083109.1034-1-florian.baeuerle@allegion.com>
On Tue, Mar 05, 2019 at 08:31:22AM +0000, Baeuerle, Florian wrote:
> 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>
I don't think I contributed to this file.
> +# 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
> +
No empty line here.
> +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 \
Why 'release'? We set debugoptimized int CROSS_MESON_USR. This is '-g -O2'
which is the same as the default for autoconf.
> + --default-library=shared
This is the meson default and should not be needed.
Michael
> +
> +# ----------------------------------------------------------------------------
> +# 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
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
next prev parent reply other threads:[~2019-03-07 11:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-05 8:31 Baeuerle, Florian
2019-03-07 11:17 ` Michael Olbrich [this message]
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
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=20190307111709.pgkbjr4u4xhhuymu@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--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