mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] new package jansson
@ 2014-04-04 13:13 Gieseler, Christian
  2014-04-05  5:24 ` Alexander Aring
  0 siblings, 1 reply; 2+ messages in thread
From: Gieseler, Christian @ 2014-04-04 13:13 UTC (permalink / raw)
  To: ptxdist

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

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

end of thread, other threads:[~2014-04-05  5:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-04 13:13 [ptxdist] [PATCH] new package jansson Gieseler, Christian
2014-04-05  5:24 ` Alexander Aring

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