From 00c83032cd9abc2025daa67da8f7e0a1620ea6a3 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 17 Aug 2009 17:13:25 +0200 Subject: [json-c] add json-c a C library to access JSON data Signed-off-by: Michael Olbrich --- rules/json-c.in | 7 +++++ rules/json-c.make | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 rules/json-c.in create mode 100644 rules/json-c.make diff --git a/rules/json-c.in b/rules/json-c.in new file mode 100644 index 000000000..ca4f1d500 --- /dev/null +++ b/rules/json-c.in @@ -0,0 +1,7 @@ +## SECTION=system_libraries + +config JSON_C + tristate + prompt "json-c" + help + json bindings in C diff --git a/rules/json-c.make b/rules/json-c.make new file mode 100644 index 000000000..d112be73e --- /dev/null +++ b/rules/json-c.make @@ -0,0 +1,83 @@ +# -*-makefile-*- +# $Id: template-make 9053 2008-11-03 10:58:48Z wsa $ +# +# Copyright (C) 2009 by Michael Olbrich +# +# 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_JSON_C) += json-c + +# +# Paths and names +# +JSON_C_VERSION := 0.9 +JSON_C := json-c-$(JSON_C_VERSION) +JSON_C_SUFFIX := tar.gz +JSON_C_URL := http://oss.metaparadigm.com/json-c/$(JSON_C).$(JSON_C_SUFFIX) +JSON_C_SOURCE := $(SRCDIR)/$(JSON_C).$(JSON_C_SUFFIX) +JSON_C_DIR := $(BUILDDIR)/$(JSON_C) +JSON_C_PKGDIR := $(PKGDIR)/$(JSON_C) +JSON_C_LICENSE := MIT + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(JSON_C_SOURCE): + @$(call targetinfo) + @$(call get, JSON_C) + + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +JSON_C_PATH := PATH=$(CROSS_PATH) +JSON_C_ENV := $(CROSS_ENV) + +# +# autoconf +# +JSON_C_AUTOCONF := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/json-c.targetinstall: + @$(call targetinfo) + + @$(call install_init, json-c) + @$(call install_fixup, json-c,PACKAGE,json-c) + @$(call install_fixup, json-c,PRIORITY,optional) + @$(call install_fixup, json-c,VERSION,$(JSON_C_VERSION)) + @$(call install_fixup, json-c,SECTION,base) + @$(call install_fixup, json-c,AUTHOR,"Michael Olbrich ") + @$(call install_fixup, json-c,DEPENDS,) + @$(call install_fixup, json-c,DESCRIPTION,missing) + + @$(call install_copy, json-c, 0, 0, 0644, -, /usr/lib/libjson.so.0.0.1) + @$(call install_link, json-c, libjson.so.0.0.1, /usr/lib/libjson.so.0) + @$(call install_link, json-c, libjson.so.0.0.1, /usr/lib/libjson.so) + + @$(call install_finish, json-c) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +json-c_clean: + rm -rf $(STATEDIR)/json-c.* + rm -rf $(PKGDIR)/json-c_* + rm -rf $(JSON_C_DIR) + +# vim: syntax=make -- cgit v1.2.3