ksmbd-tools: update to 3.5.1
[feed/packages.git] / utils / unzip / Makefile
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:=8
14
15 PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
16 PKG_SOURCE_URL:=@SF/infozip
17 PKG_HASH:=036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37
18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
19
20 PKG_LICENSE:=BSD-4-Clause
21 PKG_LICENSE_FILES:=LICENSE
22 PKG_CPE_ID:=cpe:/a:info-zip:unzip
23
24 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/unzip$(PKG_REV)
25 PKG_CHECK_FORMAT_SECURITY:=0
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/unzip
30 SECTION:=utils
31 CATEGORY:=Utilities
32 DEPENDS:=
33 TITLE:=De-archiver for .zip files
34 URL:=http://infozip.sourceforge.net/UnZip.html
35 SUBMENU:=Compression
36 endef
37
38 define Package/unzip/description
39 InfoZIP's unzip program. With the exception of multi-volume archives
40 (ie, .ZIP files that are split across several disks using PKZIP's /& option),
41 this can handle any file produced either by PKZIP, or the corresponding
42 InfoZIP zip program.
43 endef
44
45 define Build/Configure
46 endef
47
48 TARGET_CFLAGS += \
49 -DNO_LCHMOD \
50 -DLARGE_FILE_SUPPORT \
51 -DUNICODE_WCHAR \
52 -DUNICODE_SUPPORT \
53 -DUTF8_MAYBE_NATIVE \
54 -DZIP64_SUPPORT
55
56 define Build/Compile
57 $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile unzips \
58 $(TARGET_CONFIGURE_OPTS) \
59 prefix="$(PKG_INSTALL_DIR)/usr" \
60 CFLAGS="$(TARGET_CFLAGS)" \
61 CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
62 CC="$(TARGET_CC)" \
63 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
64 install
65 endef
66
67 define Package/unzip/install
68 $(INSTALL_DIR) $(1)/usr/bin/
69 $(INSTALL_BIN) \
70 $(PKG_INSTALL_DIR)/usr/bin/{funzip,unzip,unzipsfx,zipgrep} \
71 $(1)/usr/bin/
72 $(LN) unzip $(1)/usr/bin/zipinfo
73 endef
74
75 $(eval $(call BuildPackage,unzip))