mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] libfastjson: new package
Date: Tue, 27 Sep 2016 08:32:06 +0200	[thread overview]
Message-ID: <20160927063206.fufhtyhhcz2x25bv@pengutronix.de> (raw)
In-Reply-To: <20160926193336.11772-2-clemens.gruber@pqgruber.com>

On Mon, Sep 26, 2016 at 09:33:33PM +0200, Clemens Gruber wrote:
> Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
> ---
>  rules/libfastjson.in   |  8 ++++++
>  rules/libfastjson.make | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 77 insertions(+)
>  create mode 100644 rules/libfastjson.in
>  create mode 100644 rules/libfastjson.make
> 
> diff --git a/rules/libfastjson.in b/rules/libfastjson.in
> new file mode 100644
> index 0000000..b555544
> --- /dev/null
> +++ b/rules/libfastjson.in
> @@ -0,0 +1,8 @@
> +## SECTION=system_libraries
> +
> +config LIBFASTJSON
> +	bool
> +	prompt "libfastjson"
> +	help
> +	  libfastjson is a small and fast C library with most essential
> +	  JSON handling functions.
> diff --git a/rules/libfastjson.make b/rules/libfastjson.make
> new file mode 100644
> index 0000000..901f4dd
> --- /dev/null
> +++ b/rules/libfastjson.make
> @@ -0,0 +1,69 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.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_LIBFASTJSON) += libfastjson
> +
> +#
> +# Paths and names
> +#
> +LIBFASTJSON_VERSION	:= 0.99.4
> +LIBFASTJSON_MD5		:= 5a24c9adcd0bf5307c972de5e9ea4ce9
> +LIBFASTJSON		:= libfastjson-$(LIBFASTJSON_VERSION)
> +LIBFASTJSON_SUFFIX	:= tar.gz
> +LIBFASTJSON_URL		:= https://codeload.github.com/rsyslog/libfastjson/$(LIBFASTJSON_SUFFIX)/v$(LIBFASTJSON_VERSION)
> +LIBFASTJSON_SOURCE	:= $(SRCDIR)/$(LIBFASTJSON).$(LIBFASTJSON_SUFFIX)
> +LIBFASTJSON_DIR		:= $(BUILDDIR)/$(LIBFASTJSON)
> +#LIBFASTJSON_BUILD_OOT	:= YES

remove this line.

> +LIBFASTJSON_LICENSE	:= MIT
> +
> +# ----------------------------------------------------------------------------
> +# Extract
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libfastjson.extract: $(STATEDIR)/autogen-tools
> +
> +$(STATEDIR)/libfastjson.extract:
> +	@$(call targetinfo)
> +	@$(call clean, $(LIBFASTJSON_DIR))
> +	@$(call extract, LIBFASTJSON)
> +	cd $(LIBFASTJSON_DIR) && [ -f configure ] || sh autogen.sh
> +	@$(call patchin, LIBFASTJSON)
> +	@$(call touch)


remove the extract stage. Just add a patches/libfastjson-0.99.4/autogen.sh
link. That will handle it all. Including the correct dependencies.

> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +LIBFASTJSON_CONF_TOOL	:= autoconf
> +LIBFASTJSON_CONF_OPT	:= $(CROSS_AUTOCONF_USR)

remove this line.

Michael

> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libfastjson.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, libfastjson)
> +	@$(call install_fixup, libfastjson, PRIORITY, optional)
> +	@$(call install_fixup, libfastjson, SECTION, base)
> +	@$(call install_fixup, libfastjson, AUTHOR, "Clemens Gruber <clemens.gruber@pqgruber.com>")
> +	@$(call install_fixup, libfastjson, DESCRIPTION, missing)
> +
> +	@$(call install_lib, libfastjson, 0, 0, 0644, libfastjson)
> +
> +	@$(call install_finish, libfastjson)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> -- 
> 2.10.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

  reply	other threads:[~2016-09-27  6:32 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-26 19:33 [ptxdist] [PATCH] iproute2: update version and minor improvements Clemens Gruber
2016-09-26 19:33 ` [ptxdist] [PATCH] libfastjson: new package Clemens Gruber
2016-09-27  6:32   ` Michael Olbrich [this message]
2016-09-26 19:33 ` [ptxdist] [PATCH] rsyslog: major update Clemens Gruber
2016-09-27  6:37   ` Michael Olbrich
2016-09-27 12:35     ` Clemens Gruber
2016-09-27 17:54       ` Ladislav Michl
2016-09-28  8:59       ` Michael Olbrich
2016-09-28  9:23         ` Clemens Gruber
2016-09-26 19:33 ` [ptxdist] [PATCH] procps-ng: bump version Clemens Gruber
2016-09-26 19:33 ` [ptxdist] [PATCH] e2fsprogs: " Clemens Gruber
2016-09-28  8:56 ` [ptxdist] [PATCH] iproute2: update version and minor improvements Michael Olbrich
2016-09-28  9:17   ` Clemens Gruber
2016-09-28  9:26   ` Clemens Gruber

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=20160927063206.fufhtyhhcz2x25bv@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