mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Gieseler, Christian" <CG@eks-engel.de>
To: "ptxdist@pengutronix.de" <ptxdist@pengutronix.de>
Subject: [ptxdist] [PATCH] new package jansson
Date: Fri, 4 Apr 2014 13:13:31 +0000	[thread overview]
Message-ID: <C9183576C7342045BFDCAE863EB3C37A149CDE@EKS-Exchange.eks-engel.local> (raw)

Hi i have added jansson, a C library for encoding, decoding and manipulating of JSON data for our BSP.

I would like to share the new package, but I don`t know to do that exactly. Also the Section hast to be updated. Can someone guide me how to create a proper patch to make it acceptable for ptxdist. Which commands apart from diff do I have to use?

diff -upNr a/rules/ b/rules/ >patch results in the patch-file below: 

diff -upNr a/rules/jansson.in b/rules/jansson.in
--- a/rules/jansson.in	1970-01-01 01:00:00.000000000 +0100
+++ b/rules/jansson.in	2014-04-04 13:42:11.761735453 +0200
@@ -0,0 +1,7 @@
+## SECTION=project_specific
+
+config JANSSON
+	tristate
+	prompt "jansson"
+	help
+	  C-Library for encoding, decoding and manipulating JSON data
diff -upNr a/rules/jansson.make b/rules/jansson.make
--- a/rules/jansson.make	1970-01-01 01:00:00.000000000 +0100
+++ b/rules/jansson.make	2014-04-04 14:57:20.390288447 +0200
@@ -0,0 +1,105 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2014 by Christian Gieseler <cg@eks-engel.de>
+#
+# 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_JANSSON) += jansson
+
+#
+# Paths and names
+#
+JANSSON_VERSION	:= 2.6
+JANSSON_MD5	:= c70a52488db623a26f7213c7c6b7c878
+JANSSON		:= jansson-$(JANSSON_VERSION)
+JANSSON_SUFFIX	:= tar.bz2
+JANSSON_URL	:= http://www.digip.org/jansson/releases/$(JANSSON).$(JANSSON_SUFFIX)
+JANSSON_SOURCE	:= $(SRCDIR)/$(JANSSON).$(JANSSON_SUFFIX)
+JANSSON_DIR	:= $(BUILDDIR)/lib$(JANSSON)
+JANSSON_LICENSE	:= MIT
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+#$(JANSSON_SOURCE):
+#	@$(call targetinfo)
+#	@$(call get, JANSSON)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+JANSSON_PATH	:= PATH=$(CROSS_PATH)
+JANSSON_ENV	:= $(CROSS_ENV)
+
+#
+# autoconf
+#
+#JANSSON_AUTOCONF 	:= \
+#			--host=arm-linux 
+
+JANSSON_CONF_TOOL	:= autoconf
+JANSSON_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
+
+#$(STATEDIR)/jansson.prepare:
+#	@$(call targetinfo)
+#	@$(call clean, $(JANSSON_DIR)/config.cache)
+#	cd $(JANSSON_DIR) && \
+#		$(JANSSON_PATH) $(JANSSON_ENV) \
+#		./configure $(JANSSON_CONF_OPT)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/jansson.compile:
+#	@$(call targetinfo)
+#	@$(call world/compile, JANSSON)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/jansson.install:
+#	@$(call targetinfo)
+#	@$(call world/install, JANSSON)
+#	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/jansson.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, jansson)
+	@$(call install_fixup, jansson,PRIORITY,optional)
+	@$(call install_fixup, jansson,SECTION,base)
+	@$(call install_fixup, jansson,AUTHOR,"Christian Gieseler <cg@eks-engel.de>")
+	@$(call install_fixup, jansson,DESCRIPTION,missing)
+
+	@$(call install_copy, jansson, 0, 0, 0755, $(JANSSON_DIR)/src/.libs/libjansson.so.4, /lib/libjansson.so.4)
+
+	@$(call install_finish, jansson)
+
+	@$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+#$(STATEDIR)/jansson.clean:
+#	@$(call targetinfo)
+#	@$(call clean_pkg, JANSSON)
+
+# vim: syntax=make

Regards
Christian

-- 
ptxdist mailing list
ptxdist@pengutronix.de

             reply	other threads:[~2014-04-04 13:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-04 13:13 Gieseler, Christian [this message]
2014-04-05  5:24 ` Alexander Aring

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=C9183576C7342045BFDCAE863EB3C37A149CDE@EKS-Exchange.eks-engel.local \
    --to=cg@eks-engel.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