From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from informare.org ([217.11.52.70]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iktAW-0001TM-0F for ptxdist@pengutronix.de; Fri, 27 Dec 2019 18:12:56 +0100 From: Florian Faber Message-ID: <655376a0-cbba-9119-7d61-79c805cb4e51@faberman.de> Date: Fri, 27 Dec 2019 18:13:19 +0100 MIME-Version: 1.0 Content-Language: en-US Subject: [ptxdist] [PATCH] zstd: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Add zstd-1.4.4 to the repository. Signed-off-by: Florian Faber --- diff -upNr a/zstd.in rules/zstd.in --- a/zstd.in 1970-01-01 01:00:00.000000000 +0100 +++ b/zstd.in 2019-12-18 16:56:31.000000000 +0100 @@ -0,0 +1,42 @@ +## SECTION=shell_and_console + +menuconfig ZSTD + bool + prompt "zstd" + select HOST_CMAKE + help + zstd is a fast lossless compression algorithm and data + compression tool, with command line syntax similar to + gzip and xz. It is based on the LZ77 family, with further + FSE & huff0 entropy stages. zstd offers highly configurable + compression speed, with fast modes at > 200 MB/s per code, + and strong modes nearing lzma compression ratios. It also + features a very fast decoder, with speeds > 500 MB/s per core. + +if ZSTD + +config ZSTD_LIBZSTD + tristate + prompt "install zstd library" + +config ZSTD_ZSTD + tristate + select ZSTD_LIBZSTD + prompt "install zstd tool" + +config ZSTD_ZSTDCAT + tristate + select ZSTD_LIBZSTD + prompt "install zstdcat" + +config ZSTD_ZSTDGREP + tristate + select ZSTD_LIBZSTD + prompt "install zstdgrep" + +config ZSTD_ZSTDLESS + tristate + select ZSTD_LIBZSTD + prompt "install zstdless" + +endif diff -upNr a/zstd.make rules/zstd.make --- a/zstd.make 1970-01-01 01:00:00.000000000 +0100 +++ b/zstd.make 2019-12-18 16:52:12.000000000 +0100 @@ -0,0 +1,69 @@ +# -*-makefile-*- +# +# Copyright (C) 2019 by Florian Faber +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_ZSTD) += zstd + +# +# Paths and names +# +ZSTD_VERSION := 1.4.4 +ZSTD_MD5 := 532aa7b3a873e144bbbedd9c0ea87694 +ZSTD := zstd-$(ZSTD_VERSION) +ZSTD_SUFFIX := tar.gz +ZSTD_URL := https://github.com/facebook/zstd/archive/v$(ZSTD_VERSION).$(ZSTD_SUFFIX) +ZSTD_SOURCE := $(SRCDIR)/$(ZSTD).$(ZSTD_SUFFIX) +ZSTD_DIR := $(BUILDDIR)/$(ZSTD) +ZSTD_SUBDIR := build/cmake +ZSTD_LICENSE := BSD + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +ZSTD_CONF_TOOL := cmake +ZSTD_BUILD_DIR := $(ZSTD_DIR)-build +ZSTD_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -B$(ZSTD_BUILD_DIR) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/zstd.targetinstall: + @$(call targetinfo) + + @$(call install_init, zstd) + @$(call install_fixup, zstd, PRIORITY, optional) + @$(call install_fixup, zstd, SECTION, base) + @$(call install_fixup, zstd, AUTHOR, "Florian Faber ") + @$(call install_fixup, zstd, DESCRIPTION, missing) + +ifdef PTXCONF_ZSTD_LIBZSTD + $(call install_lib, zstd, 0, 0, 0644, libzstd) +endif +ifdef PTXCONF_ZSTD_ZSTD + $(call install_copy, zstd, 0, 0, 0755, -, /usr/bin/zstd) +endif +ifdef PTXCONF_ZSTD_ZSTDCAT + $(call install_copy, zstd, 0, 0, 0755, -, /usr/bin/zstdcat) +endif +ifdef PTXCONF_ZSTD_ZSTDGREP + $(call install_copy, zstd, 0, 0, 0755, -, /usr/bin/zstdgrep) +endif +ifdef PTXCONF_ZSTD_ZSTDLESS + $(call install_copy, zstd, 0, 0, 0755, -, /usr/bin/zstdless) +endif + + @$(call install_finish, zstd) + + @$(call touch) -- Machines can do the work, so people have time to think. _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de