Add gzip package.
[packages.git] / utils / gzip / Makefile
1
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gzip
12 PKG_VERSION:=1.3.3
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.gzip.org/
17 PKG_MD5SUM:=52eaf713673507d21f7abefee98ba662
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gzip
24   SECTION:=utils
25   CATEGORY:=Utilities
26   DEPENDS:=
27   TITLE:=gzip (GNU zip) is a compression utility.
28   URL:=http://www.gzip.org/
29 endef
30
31 define Package/gzip/description
32         gzip (GNU zip) is a compression utility designed to be a \
33         replacement for compress.
34 endef
35
36 define Build/Configure
37         $(call Build/Configure/Default, \
38                 --prefix=/usr \
39         );
40 endef
41
42 define Build/Compile
43         $(call Build/Compile/Default, \
44                 CFLAGS="$(TARGET_CFLAGS)" \
45                 LDFLAGS="$(TARGET_LDLAGS)" \
46         )
47 endef
48
49 define Package/gzip/install
50         mkdir -p $(1)/usr/bin/
51         $(INSTALL_BIN) $(PKG_BUILD_DIR)/gzip $(1)/usr/bin/
52 endef
53
54 $(eval $(call BuildPackage,gzip))
55