Makefile 932 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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_SOURCE:=$(PKG_NAME)$(PKG_REV).tar.gz
  12. PKG_SOURCE_URL:=@SF/infozip
  13. PKG_HASH:=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
  14. PKG_LICENSE:=BSD-4-Clause
  15. PKG_LICENSE_FILES:=LICENSE
  16. PKG_CPE_ID:=cpe:/a:zip_project:zip
  17. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
  18. HOST_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/host-build.mk
  20. define Host/Compile
  21. +$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) -I. -f unix/Makefile zip
  22. endef
  23. define Host/Install
  24. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
  25. $(INSTALL_BIN) $(HOST_BUILD_DIR)/zip $(STAGING_DIR_HOST)/bin/
  26. endef
  27. define Host/Clean
  28. rm -rf $(STAGING_DIR_HOST)/bin/zip
  29. endef
  30. $(eval $(call HostBuild))