summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Melki <christian.melki@t2data.com>2022-01-20 11:56:06 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2022-01-21 13:23:35 +0100
commit7b236fda64943d89999f0be1095bd92c55b1520a (patch)
tree430d494a7c6b29261e2359af8fb7c1e41e671ca4
parent3814079a4ea8df524d1f0ce56430b48b356013e2 (diff)
downloadptxdist-7b236fda64943d89999f0be1095bd92c55b1520a.tar.gz
ptxdist-7b236fda64943d89999f0be1095bd92c55b1520a.tar.xz
xxhash: Add new package. Version 0.8.1.
xxhash is a library consisting of, an extremely fast, non-cryptographic hash function. The hash is implemented in a few variants with slightly different capabilities. xxhash is also very usable for small data sets such as hash tables / indexes etc. Signed-off-by: Christian Melki <christian.melki@t2data.com> Message-Id: <20220120105607.300271-1-christian.melki@t2data.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/xxhash.in7
-rw-r--r--rules/xxhash.make56
2 files changed, 63 insertions, 0 deletions
diff --git a/rules/xxhash.in b/rules/xxhash.in
new file mode 100644
index 000000000..47e9c672a
--- /dev/null
+++ b/rules/xxhash.in
@@ -0,0 +1,7 @@
+## SECTION=system_libraries
+
+config XXHASH
+ tristate
+ prompt "xxhash"
+ help
+ Extremely fast non-cryptographic hash library.
diff --git a/rules/xxhash.make b/rules/xxhash.make
new file mode 100644
index 000000000..792fe58f0
--- /dev/null
+++ b/rules/xxhash.make
@@ -0,0 +1,56 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Christian Melki <christian.melki@t2data.com>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_XXHASH) += xxhash
+
+#
+# Paths and names
+#
+XXHASH_VERSION := 0.8.1
+XXHASH_MD5 := b67c587f5ff4894253da0095ba7ea393
+XXHASH := xxhash-$(XXHASH_VERSION)
+XXHASH_SUFFIX := tar.gz
+XXHASH_URL := https://github.com/Cyan4973/xxHash/archive/refs/tags/v$(XXHASH_VERSION).$(XXHASH_SUFFIX)
+XXHASH_SOURCE := $(SRCDIR)/$(XXHASH).$(XXHASH_SUFFIX)
+XXHASH_DIR := $(BUILDDIR)/$(XXHASH)
+XXHASH_LICENSE := BSD-2-Clause
+XXHASH_LICENSE_FILES := \
+ file://LICENSE;md5=cdfe7764d5685d8e08b3df302885d7f3
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+XXHASH_CONF_TOOL := NO
+
+XXHASH_MAKE_ENV := \
+ $(CROSS_ENV) \
+ prefix=/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/xxhash.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, xxhash)
+ @$(call install_fixup, xxhash,PRIORITY,optional)
+ @$(call install_fixup, xxhash,SECTION,base)
+ @$(call install_fixup, xxhash,AUTHOR,"Christian Melki <christian.melki@t2data.com>")
+ @$(call install_fixup, xxhash,DESCRIPTION,missing)
+
+ @$(call install_lib, xxhash, 0, 0, 0644, libxxhash)
+
+ @$(call install_finish, xxhash)
+ @$(call touch)
+
+# vim: syntax=make