From 7152f8b1b03e55a82611117e20a5f108a9b1f0d2 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Thu, 29 Nov 2007 18:28:01 +0000 Subject: [PATCH] Add gzip package. Quicker than busybox's implementation. Signed-off-by: Fabian Deutsch SVN-Revision: 9631 --- utils/gzip/Makefile | 55 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 utils/gzip/Makefile diff --git a/utils/gzip/Makefile b/utils/gzip/Makefile new file mode 100644 index 000000000..940b4835d --- /dev/null +++ b/utils/gzip/Makefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2006 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id$ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gzip +PKG_VERSION:=1.3.3 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.gzip.org/ +PKG_MD5SUM:=52eaf713673507d21f7abefee98ba662 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/gzip + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:= + TITLE:=gzip (GNU zip) is a compression utility. + URL:=http://www.gzip.org/ +endef + +define Package/gzip/description + gzip (GNU zip) is a compression utility designed to be a \ + replacement for compress. +endef + +define Build/Configure + $(call Build/Configure/Default, \ + --prefix=/usr \ + ); +endef + +define Build/Compile + $(call Build/Compile/Default, \ + CFLAGS="$(TARGET_CFLAGS)" \ + LDFLAGS="$(TARGET_LDLAGS)" \ + ) +endef + +define Package/gzip/install + mkdir -p $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/gzip $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,gzip)) + -- 2.30.2