2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
16 PKG_SOURCE_URL:=@SF/infozip
17 PKG_MD5SUM:=62b490407489521db863b523a7f86375
18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
20 PKG_LICENSE:=BSD-4-Clause
21 PKG_LICENSE_FILES:=LICENSE
23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unzip$(PKG_REV)
24 PKG_CHECK_FORMAT_SECURITY:=0
26 include $(INCLUDE_DIR)/package.mk
32 TITLE:=De-archiver for .zip files
33 URL:=http://infozip.sourceforge.net/UnZip.html
37 define Package/unzip/description
38 InfoZIP's unzip program. With the exception of multi-volume archives
39 (ie, .ZIP files that are split across several disks using PKZIP's /& option),
40 this can handle any file produced either by PKZIP, or the corresponding
44 define Build/Configure
49 -DLARGE_FILE_SUPPORT \
56 $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile unzips \
57 $(TARGET_CONFIGURE_OPTS) \
58 prefix="$(PKG_INSTALL_DIR)/usr" \
59 CFLAGS="$(TARGET_CFLAGS)" \
60 CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
62 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
66 define Package/unzip/install
67 $(INSTALL_DIR) $(1)/usr/bin/
69 $(PKG_INSTALL_DIR)/usr/bin/{funzip,unzip,unzipsfx,zipgrep} \
71 $(LN) unzip $(1)/usr/bin/zipinfo
74 $(eval $(call BuildPackage,unzip))