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.

73 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2007-2016 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:=zip
  9. PKG_REV:=30
  10. PKG_VERSION:=3.0
  11. PKG_RELEASE:=3
  12. PKG_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
  13. PKG_SOURCE_URL:=@SF/infozip
  14. PKG_HASH:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
  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)/zip$(PKG_REV)
  19. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
  20. PKG_CHECK_FORMAT_SECURITY:=0
  21. include $(INCLUDE_DIR)/host-build.mk
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/zip
  24. SECTION:=utils
  25. CATEGORY:=Utilities
  26. DEPENDS:=
  27. TITLE:=Archiver for .zip files
  28. URL:=http://infozip.sourceforge.net/Zip.html
  29. SUBMENU:=Compression
  30. endef
  31. define Package/zip/description
  32. This is InfoZIP's zip program. It produces files that are fully
  33. compatible with the popular PKZIP program; however, the command line
  34. options are not identical. In other words, the end result is the same,
  35. but the methods differ.
  36. endef
  37. define Build/Configure
  38. endef
  39. define Build/Compile
  40. $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
  41. prefix="$(PKG_INSTALL_DIR)/usr" \
  42. CFLAGS="$(TARGET_CFLAGS)" \
  43. CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX $(TARGET_LDFLAGS)" \
  44. IZ_BZIP2="no" \
  45. install
  46. endef
  47. define Package/zip/install
  48. $(INSTALL_DIR) $(1)/usr/bin/
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  50. endef
  51. define Host/Compile
  52. +$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) -I. -f unix/Makefile generic
  53. endef
  54. define Host/Install
  55. $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
  56. $(INSTALL_BIN) $(HOST_BUILD_DIR)/zip $(STAGING_DIR_HOSTPKG)/bin/
  57. endef
  58. $(eval $(call HostBuild))
  59. $(eval $(call BuildPackage,zip))