From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx-relay38-dus.antispameurope.com ([94.100.134.238]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1WW3xE-00088q-97 for ptxdist@pengutronix.de; Fri, 04 Apr 2014 15:14:45 +0200 From: "Gieseler, Christian" Date: Fri, 4 Apr 2014 13:13:31 +0000 Message-ID: Content-Language: de-DE MIME-Version: 1.0 Subject: [ptxdist] [PATCH] new package jansson Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" 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 +# +# 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 ") + @$(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