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
47 TARGET_CFLAGS
+= -DNO_LCHMOD
-DLARGE_FILE_SUPPORT
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) -f unix
/Makefile unzips \
51 $(TARGET_CONFIGURE_OPTS
) \
52 prefix="$(PKG_INSTALL_DIR)/usr" \
53 CFLAGS
="$(TARGET_CFLAGS)" \
54 CF
="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
56 LD
="$(TARGET_CC) $(TARGET_LDFLAGS)" \
60 define Package
/unzip
/install
61 $(INSTALL_DIR
) $(1)/usr
/bin
/
62 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
65 $(eval
$(call BuildPackage
,unzip
))