a788a6e3eb64077d2f518dcdcca507139ffc5765
[openwrt/svn-archive/archive.git] / utils / gzip / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gzip
11 PKG_VERSION:=1.3.13
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@GNU/gzip/
16 PKG_MD5SUM:=c54a31b93e865f6a4410b2dc64662706
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/gzip
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=
26 TITLE:=gzip (GNU zip) is a compression utility.
27 URL:=http://www.gzip.org/
28 endef
29
30 define Package/gzip/description
31 gzip (GNU zip) is a compression utility designed to be a \
32 replacement for compress.
33 endef
34
35 CONFIGURE_VARS += \
36 gl_cv_func_getopt_gnu=yes \
37
38 define Package/gzip/install
39 $(SED) 's,/bin/bash,/bin/sh,g' $(PKG_INSTALL_DIR)/usr/bin/{gunzip,zcat}
40 $(INSTALL_DIR) $(1)/usr/bin
41 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{gunzip,gzip,zcat} $(1)/usr/bin/
42 endef
43
44 $(eval $(call BuildPackage,gzip))
45