Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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:=2
  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. PKG_CHECK_FORMAT_SECURITY:=0
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/zip
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=
  25. TITLE:=Archiver for .zip files
  26. URL:=http://infozip.sourceforge.net/Zip.html
  27. SUBMENU:=Compression
  28. endef
  29. define Package/zip/description
  30. This is InfoZIP's zip program. It produces files that are fully
  31. compatible with the popular PKZIP program; however, the command line
  32. options are not identical. In other words, the end result is the same,
  33. but the methods differ.
  34. endef
  35. define Build/Configure
  36. endef
  37. define Build/Compile
  38. $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \
  39. prefix="$(PKG_INSTALL_DIR)/usr" \
  40. CFLAGS="$(TARGET_CFLAGS)" \
  41. CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX $(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))