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.

61 lines
1.5 KiB

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