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.

64 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. include $(INCLUDE_DIR)/package.mk
  20. define Package/unzip
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=
  24. TITLE:=De-archiver for .zip files
  25. URL:=http://infozip.sourceforge.net/UnZip.html
  26. SUBMENU:=Compression
  27. endef
  28. define Package/unzip/description
  29. InfoZIP's unzip program. With the exception of multi-volume archives
  30. (ie, .ZIP files that are split across several disks using PKZIP's /& option),
  31. this can handle any file produced either by PKZIP, or the corresponding
  32. InfoZIP zip program.
  33. endef
  34. define Build/Configure
  35. endef
  36. TARGET_CFLAGS += -DNO_LCHMOD -DLARGE_FILE_SUPPORT
  37. define Build/Compile
  38. $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile unzips \
  39. $(TARGET_CONFIGURE_OPTS) \
  40. prefix="$(PKG_INSTALL_DIR)/usr" \
  41. CFLAGS="$(TARGET_CFLAGS)" \
  42. CF="$(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \
  43. CC="$(TARGET_CC)" \
  44. LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \
  45. install
  46. endef
  47. define Package/unzip/install
  48. $(INSTALL_DIR) $(1)/usr/bin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  50. endef
  51. $(eval $(call BuildPackage,unzip))