diff options
-rw-r--r-- | rules/host-xz.in | 26 | ||||
-rw-r--r-- | rules/host-xz.make | 54 |
2 files changed, 80 insertions, 0 deletions
diff --git a/rules/host-xz.in b/rules/host-xz.in new file mode 100644 index 000000000..63922594d --- /dev/null +++ b/rules/host-xz.in @@ -0,0 +1,26 @@ +## SECTION=hosttools_noprompt + +config HOST_XZ + tristate + help + XZ-format compression utilities + + XZ is the successor to the Lempel-Ziv/Markov-chain Algorithm + compression format, which provides memory-hungry but + powerful compression (often better than bzip2) and fast, + easy decompression. + + This package provides the command line tools for working + with XZ compression, including xz, unxz, xzcat, xzgrep, and + so on. They can also handle the older LZMA format, and if + invoked via appropriate symlinks will emulate the behavior + of the commands in the lzma package. + + The XZ format is similar to the older LZMA format but + includes some improvements for general use: + + * 'file' magic for detecting XZ files; + * crc64 data integrity check; + * limited random-access reading support; + * improved support for multithreading (not used in xz-utils); + * support for flushing the encoder. diff --git a/rules/host-xz.make b/rules/host-xz.make new file mode 100644 index 000000000..c124eead7 --- /dev/null +++ b/rules/host-xz.make @@ -0,0 +1,54 @@ +# -*-makefile-*- +# +# Copyright (C) 2010 by Marc Kleine-Budde <mkl@pengutronix.de> +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_XZ) += host-xz + +# +# Paths and names +# +HOST_XZ_VERSION := 4.999.9beta +HOST_XZ := xz-$(HOST_XZ_VERSION) +HOST_XZ_SUFFIX := tar.bz2 +HOST_XZ_URL := http://tukaani.org/xz/$(HOST_XZ).$(HOST_XZ_SUFFIX) +HOST_XZ_SOURCE := $(SRCDIR)/$(HOST_XZ).$(HOST_XZ_SUFFIX) +HOST_XZ_DIR := $(HOST_BUILDDIR)/$(HOST_XZ) + +# ---------------------------------------------------------------------------- +# Get +# ---------------------------------------------------------------------------- + +$(HOST_XZ_SOURCE): + @$(call targetinfo) + @$(call get, HOST_XZ) + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_XZ_PATH := PATH=$(HOST_PATH) +HOST_XZ_ENV := $(HOST_ENV) + +# +# autoconf +# +HOST_XZ_AUTOCONF := $(HOST_AUTOCONF) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +host-xz_clean: + rm -rf $(STATEDIR)/host-xz.* + rm -rf $(HOST_XZ_DIR) + +# vim: syntax=make |