Makefile 870 B

123456789101112131415161718192021222324252627282930313233343536
  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. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/zip$(PKG_REV)
  17. HOST_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. define Host/Compile
  20. +$(HOST_MAKE_VARS) $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) -I. -f unix/Makefile zip
  21. endef
  22. define Host/Install
  23. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin/
  24. $(INSTALL_BIN) $(HOST_BUILD_DIR)/zip $(STAGING_DIR_HOST)/bin/
  25. endef
  26. $(eval $(call HostBuild))
  27. #$(eval $(call BuildPackage,zip))