summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis OSTERLAND <denis.osterland@diehl.com>2018-06-22 09:42:03 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-06-23 09:55:28 +0200
commitd05827da07bc09e819a542c8b1aab8caeb316c8e (patch)
treef1d9df5a1561a1258a15024709e2532e2ed0cf2b
parent08c4f4be11e5e46b4e137d72f4b3021f4895cd88 (diff)
downloadptxdist-d05827da07bc09e819a542c8b1aab8caeb316c8e.tar.gz
ptxdist-d05827da07bc09e819a542c8b1aab8caeb316c8e.tar.xz
yajl: add new package
Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/yajl.in8
-rw-r--r--rules/yajl.make49
2 files changed, 57 insertions, 0 deletions
diff --git a/rules/yajl.in b/rules/yajl.in
new file mode 100644
index 000000000..39c53e1df
--- /dev/null
+++ b/rules/yajl.in
@@ -0,0 +1,8 @@
+## SECTION=system_libraries
+
+config YAJL
+ tristate
+ prompt "yajl"
+ select HOST_CMAKE
+ help
+ A fast streaming JSON parsing library in C.
diff --git a/rules/yajl.make b/rules/yajl.make
new file mode 100644
index 000000000..3113a8cd0
--- /dev/null
+++ b/rules/yajl.make
@@ -0,0 +1,49 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Denis Osterland <Denis.Osterland@diehl.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.
+#
+
+PACKAGES-$(PTXCONF_YAJL) += yajl
+
+YAJL_VERSION := 2.1.0
+YAJL_MD5 := 8df8a92a2799bc949577e8e7a9f43670
+YAJL := yajl-$(YAJL_VERSION)
+YAJL_SUFFIX := tar.gz
+YAJL_URL := http://github.com/lloyd/yajl/tarball/$(YAJL_VERSION)
+YAJL_SOURCE := $(SRCDIR)/$(YAJL).$(YAJL_SUFFIX)
+YAJL_DIR := $(BUILDDIR)/$(YAJL)
+YAJL_LICENSE := ISC
+YAJL_LICENSE_FILES := file://COPYING;md5=39af6eb42999852bdd3ea00ad120a36d
+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+YAJL_CONF_TOOL := cmake
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/yajl.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, yajl)
+ @$(call install_fixup, yajl,PRIORITY,optional)
+ @$(call install_fixup, yajl,SECTION,base)
+ @$(call install_fixup, yajl,AUTHOR,"Denis Osterland <Denis.Osterland@diehl.com>")
+ @$(call install_fixup, yajl,DESCRIPTION,missing)
+
+ @$(call install_lib, yajl, 0, 0, 0755, libyajl)
+
+ @$(call install_finish, yajl)
+
+ @$(call touch)
+
+# vim: syntax=make