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 <[email protected]>
---
 rules/xxhash.in   |  7 ++++++
 rules/xxhash.make | 56 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 rules/xxhash.in
 create mode 100644 rules/xxhash.make

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 <[email protected]>
+#
+# 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 
<[email protected]>")
+       @$(call install_fixup, xxhash,DESCRIPTION,missing)
+
+       @$(call install_lib, xxhash, 0, 0, 0644, libxxhash)
+
+       @$(call install_finish, xxhash)
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.30.2


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to