Makefile (1793B)
1 # 2 # Copyright (C) 2006-2017 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_REV:=60 12 PKG_VERSION:=6.0 13 PKG_RELEASE:=5 14 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> 19 20 PKG_LICENSE:=BSD-4-Clause 21 PKG_LICENSE_FILES:=LICENSE 22 23 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unzip$(PKG_REV) 24 PKG_CHECK_FORMAT_SECURITY:=0 25 26 include $(INCLUDE_DIR)/package.mk 27 28 define Package/unzip 29 SECTION:=utils 30 CATEGORY:=Utilities 31 DEPENDS:= 32 TITLE:=De-archiver for .zip files 33 URL:=http://infozip.sourceforge.net/UnZip.html 34 SUBMENU:=Compression 35 endef 36 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 41 InfoZIP zip program. 42 endef 43 44 define Build/Configure 45 endef 46 47 TARGET_CFLAGS += \ 48 -DNO_LCHMOD \ 49 -DLARGE_FILE_SUPPORT \ 50 -DUNICODE_WCHAR \ 51 -DUNICODE_SUPPORT \ 52 -DUTF8_MAYBE_NATIVE \ 53 -DZIP64_SUPPORT 54 55 define Build/Compile 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" \ 61 CC="$(TARGET_CC)" \ 62 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \ 63 install 64 endef 65 66 define Package/unzip/install 67 $(INSTALL_DIR) $(1)/usr/bin/ 68 $(INSTALL_BIN) \ 69 $(PKG_INSTALL_DIR)/usr/bin/{funzip,unzip,unzipsfx,zipgrep} \ 70 $(1)/usr/bin/ 71 $(LN) unzip $(1)/usr/bin/zipinfo 72 endef 73 74 $(eval $(call BuildPackage,unzip))