2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)552.zip
16 PKG_SOURCE_URL
:=@SF
/infozip
17 PKG_MD5SUM
:=3d55b4e7375c3d0b81feca52dc0e4d48
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 PKG_UNPACK
:=unzip
-d
$(PKG_BUILD_DIR
)/ $(DL_DIR
)/$(PKG_SOURCE
)
23 include $(INCLUDE_DIR
)/package.mk
29 TITLE
:=De-archiver for .zip files
30 URL
:=http
://infozip.sourceforge.net
/Zip.html
33 define Package
/unzip
/description
34 InfoZIP
's unzip program. With the exception of multi-volume archives
35 (ie, .ZIP files that are split across several disks using PKZIP's
/& option
),
36 this can handle any file produced either by PKZIP
, or the corresponding
40 define Build
/Configure
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f unix
/Makefile generic \
45 $(TARGET_CONFIGURE_OPTS
) \
46 prefix="$(PKG_INSTALL_DIR)/usr" \
47 CFLAGS
="$(TARGET_CFLAGS)" \
48 CF
="$(TARGET_CFLAGS) -O -I$(STAGING_DIR)/usr/include -I. -DUNIX" \
49 LD
="$(TARGET_CC) -L$(STAGING_DIR)/usr/lib" \
53 define Package
/unzip
/install
54 $(INSTALL_DIR
) $(1)/usr
/bin
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
58 $(eval
$(call BuildPackage
,unzip
))