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 <[email protected]>
+#
+# 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 
<[email protected]>")
+       @$(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
[email protected]

Reply via email to