[packages_10.03.2] setserial: merge r29212
[10.03/packages.git] / utils / unzip / Makefile
1 #
2 # Copyright (C) 2006-2009 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:=unzip
11 PKG_VERSION:=5.52
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)552.zip
15 PKG_SOURCE_URL:=@SF/infozip
16 PKG_MD5SUM:=3d55b4e7375c3d0b81feca52dc0e4d48
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_UNPACK=unzip -d $(PKG_BUILD_DIR)/ $(DL_DIR)/$(PKG_SOURCE)
21
22 define Package/unzip
23   SECTION:=utils
24   CATEGORY:=Utilities
25   DEPENDS:=
26   TITLE:=De-archiver for .zip files
27   URL:=http://infozip.sourceforge.net/UnZip.html
28   SUBMENU:=compression
29 endef
30
31 define Package/unzip/description
32         InfoZIP's unzip program. With the exception of multi-volume archives 
33         (ie, .ZIP files that are split across several disks using PKZIP's /& option), 
34         this can handle any file produced either by PKZIP, or the corresponding 
35         InfoZIP zip program.
36 endef
37
38 define Build/Configure
39 endef
40
41 define Build/Compile
42         $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
43                 $(TARGET_CONFIGURE_OPTS) \
44                 prefix="$(PKG_INSTALL_DIR)/usr" \
45                 CFLAGS="$(TARGET_CFLAGS)" \
46                 CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
47                 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
48                 install
49 endef
50
51 define Package/unzip/install    
52         $(INSTALL_DIR) $(1)/usr/bin/
53         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
54 endef
55
56 $(eval $(call BuildPackage,unzip))