mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] libfastjson: new package
@ 2016-09-28 15:59 Clemens Gruber
  0 siblings, 0 replies; only message in thread
From: Clemens Gruber @ 2016-09-28 15:59 UTC (permalink / raw)
  To: ptxdist; +Cc: Clemens Gruber

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---

Changes from v1:
- Cleaned up rule file and added autogen.sh link

 patches/libfastjson-0.99.4/autogen.sh |  1 +
 rules/libfastjson.in                  |  8 ++++++
 rules/libfastjson.make                | 53 +++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 120000 patches/libfastjson-0.99.4/autogen.sh
 create mode 100644 rules/libfastjson.in
 create mode 100644 rules/libfastjson.make

diff --git a/patches/libfastjson-0.99.4/autogen.sh b/patches/libfastjson-0.99.4/autogen.sh
new file mode 120000
index 0000000..9f8a4cb
--- /dev/null
+++ b/patches/libfastjson-0.99.4/autogen.sh
@@ -0,0 +1 @@
+../autogen.sh
\ No newline at end of file
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..6ecdc00
--- /dev/null
+++ b/rules/libfastjson.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Clemens Gruber <clemens.gruber@pqgruber.com>
+#
+# 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_LICENSE	:= MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBFASTJSON_CONF_TOOL	:= autoconf
+
+# ----------------------------------------------------------------------------
+# 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 <clemens.gruber@pqgruber.com>")
+	@$(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
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-28 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 15:59 [ptxdist] [PATCH v2] libfastjson: new package Clemens Gruber

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