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.

65 lines
1.6 KiB

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