Przeglądaj źródła

xxhash: new package

"xxHash is an extremely fast hash algorithm, running at RAM speed
limits."

[Thomas:
 - tweak commit log title
 - add correct license and license files information, using the
   suggestion from Yann E. Morin
 - add $(TARGET_MAKE_ENV) in the environment in the build step.]

Signed-off-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Ed Swierk 10 lat temu
rodzic
commit
2d6a1575ac
3 zmienionych plików z 28 dodań i 0 usunięć
  1. 1 0
      package/Config.in
  2. 7 0
      package/xxhash/Config.in
  3. 20 0
      package/xxhash/xxhash.mk

+ 1 - 0
package/Config.in

@@ -1458,6 +1458,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 	source "package/which/Config.in"
 endif
 	source "package/xmlstarlet/Config.in"
+	source "package/xxhash/Config.in"
 endmenu
 
 menu "System tools"

+ 7 - 0
package/xxhash/Config.in

@@ -0,0 +1,7 @@
+config BR2_PACKAGE_XXHASH
+	bool "xxhash"
+	help
+	  xxHash is an extremely fast hash algorithm, running at RAM
+	  speed limits.
+
+	  https://github.com/Cyan4973/xxHash

+ 20 - 0
package/xxhash/xxhash.mk

@@ -0,0 +1,20 @@
+################################################################################
+#
+# xxhash
+#
+################################################################################
+
+XXHASH_VERSION = r40
+XXHASH_SITE = $(call github,Cyan4973,xxHash,$(XXHASH_VERSION))
+XXHASH_LICENSE = BSD-2c, GPLv2+
+XXHASH_LICENSE_FILES = LICENSE xxhsum.c
+
+define XXHASH_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) xxhsum
+endef
+
+define XXHASH_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/xxhsum $(TARGET_DIR)/usr/bin/xxhsum
+endef
+
+$(eval $(generic-package))