You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.8 KiB

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