diff options
Diffstat (limited to 'rules/gzip.make')
-rw-r--r-- | rules/gzip.make | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/rules/gzip.make b/rules/gzip.make new file mode 100644 index 000000000..7fa04607f --- /dev/null +++ b/rules/gzip.make @@ -0,0 +1,83 @@ +# -*-makefile-*- +# +# Copyright (C) 2012 by Michael Olbrich <m.olbrich@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 +# +PACKAGES-$(PTXCONF_GZIP) += gzip + +# +# Paths and names +# +GZIP_VERSION := 1.5 +GZIP_MD5 := 2a431e169b6f62f7332ef6d47cc53bae +GZIP := gzip-$(GZIP_VERSION) +GZIP_SUFFIX := tar.xz +GZIP_URL := $(call ptx/mirror, GNU, gzip/$(GZIP).$(GZIP_SUFFIX)) +GZIP_SOURCE := $(SRCDIR)/$(GZIP).$(GZIP_SUFFIX) +GZIP_DIR := $(BUILDDIR)/$(GZIP) +GZIP_LICENSE := GPLv3 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +GZIP_CONF_TOOL := autoconf +GZIP_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + $(GLOBAL_LARGE_FILE_OPTION) \ + --enable-threads=posix \ + --disable-rpath + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gzip.targetinstall: + @$(call targetinfo) + + @$(call install_init, gzip) + @$(call install_fixup, gzip,PRIORITY,optional) + @$(call install_fixup, gzip,SECTION,base) + @$(call install_fixup, gzip,AUTHOR,"Michael Olbrich <m.olbrich@pengutronix.de>") + @$(call install_fixup, gzip,DESCRIPTION,missing) + + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gzip) + + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gunzip) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/gzexe) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/uncompress) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zcat) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zcmp) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zdiff) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zegrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zfgrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zforce) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zgrep) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zless) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/zmore) + @$(call install_copy, gzip, 0, 0, 0755, -, /usr/bin/znew) + + @$(call install_finish, gzip) + + @$(call touch) + +# ---------------------------------------------------------------------------- +# Clean +# ---------------------------------------------------------------------------- + +#$(STATEDIR)/gzip.clean: +# @$(call targetinfo) +# @$(call clean_pkg, GZIP) + +# vim: syntax=make |