Merge pull request #873 from jow-/umurmur-autoconf-fix
[feed/packages.git] / utils / unzip / Makefile
1 #
2 # Copyright (C) 2006-2015 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:=2
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 += -DNO_LCHMOD -DLARGE_FILE_SUPPORT
48
49 define Build/Compile
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" \
55 CC="$(TARGET_CC)" \
56 LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
57 install
58 endef
59
60 define Package/unzip/install
61 $(INSTALL_DIR) $(1)/usr/bin/
62 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
63 endef
64
65 $(eval $(call BuildPackage,unzip))