35ca6083df0042333fd124211d2fc43b031ec3e0
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gzip
11 PKG_VERSION:=1.3.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.gzip.org/
16 PKG_MD5SUM:=52eaf713673507d21f7abefee98ba662
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
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 define Build/Configure
36         $(call Build/Configure/Default, \
37                 --prefix=/usr \
38         );
39 endef
40
41 define Build/Compile
42         $(call Build/Compile/Default, \
43                 CFLAGS="$(TARGET_CFLAGS)" \
44                 LDFLAGS="$(TARGET_LDLAGS)" \
45         )
46 endef
47
48 define Package/gzip/install
49         mkdir -p $(1)/usr/bin/
50         $(INSTALL_BIN) $(PKG_BUILD_DIR)/gzip $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,gzip))
54