Signed-off-by: Clemens Gruber <[email protected]> --- rules/libfastjson.in | 8 ++++++ rules/libfastjson.make | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 rules/libfastjson.in create mode 100644 rules/libfastjson.make
diff --git a/rules/libfastjson.in b/rules/libfastjson.in new file mode 100644 index 0000000..b555544 --- /dev/null +++ b/rules/libfastjson.in @@ -0,0 +1,8 @@ +## SECTION=system_libraries + +config LIBFASTJSON + bool + prompt "libfastjson" + help + libfastjson is a small and fast C library with most essential + JSON handling functions. diff --git a/rules/libfastjson.make b/rules/libfastjson.make new file mode 100644 index 0000000..901f4dd --- /dev/null +++ b/rules/libfastjson.make @@ -0,0 +1,69 @@ +# -*-makefile-*- +# +# Copyright (C) 2016 by Clemens Gruber <[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_LIBFASTJSON) += libfastjson + +# +# Paths and names +# +LIBFASTJSON_VERSION := 0.99.4 +LIBFASTJSON_MD5 := 5a24c9adcd0bf5307c972de5e9ea4ce9 +LIBFASTJSON := libfastjson-$(LIBFASTJSON_VERSION) +LIBFASTJSON_SUFFIX := tar.gz +LIBFASTJSON_URL := https://codeload.github.com/rsyslog/libfastjson/$(LIBFASTJSON_SUFFIX)/v$(LIBFASTJSON_VERSION) +LIBFASTJSON_SOURCE := $(SRCDIR)/$(LIBFASTJSON).$(LIBFASTJSON_SUFFIX) +LIBFASTJSON_DIR := $(BUILDDIR)/$(LIBFASTJSON) +#LIBFASTJSON_BUILD_OOT := YES +LIBFASTJSON_LICENSE := MIT + +# ---------------------------------------------------------------------------- +# Extract +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libfastjson.extract: $(STATEDIR)/autogen-tools + +$(STATEDIR)/libfastjson.extract: + @$(call targetinfo) + @$(call clean, $(LIBFASTJSON_DIR)) + @$(call extract, LIBFASTJSON) + cd $(LIBFASTJSON_DIR) && [ -f configure ] || sh autogen.sh + @$(call patchin, LIBFASTJSON) + @$(call touch) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBFASTJSON_CONF_TOOL := autoconf +LIBFASTJSON_CONF_OPT := $(CROSS_AUTOCONF_USR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libfastjson.targetinstall: + @$(call targetinfo) + + @$(call install_init, libfastjson) + @$(call install_fixup, libfastjson, PRIORITY, optional) + @$(call install_fixup, libfastjson, SECTION, base) + @$(call install_fixup, libfastjson, AUTHOR, "Clemens Gruber <[email protected]>") + @$(call install_fixup, libfastjson, DESCRIPTION, missing) + + @$(call install_lib, libfastjson, 0, 0, 0644, libfastjson) + + @$(call install_finish, libfastjson) + + @$(call touch) + +# vim: syntax=make -- 2.10.0 _______________________________________________ ptxdist mailing list [email protected]
