mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] xxhash: Add new package. Version 0.8.1.
@ 2022-01-20 10:56 Christian Melki
  2022-01-21 14:24 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Melki @ 2022-01-20 10:56 UTC (permalink / raw)
  To: ptxdist

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>
---
 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 <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
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-21 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-20 10:56 [ptxdist] [PATCH] xxhash: Add new package. Version 0.8.1 Christian Melki
2022-01-21 14:24 ` [ptxdist] [APPLIED] " Michael Olbrich

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