1
0

Makefile 944 B

12345678910111213141516171819202122232425262728293031323334353637
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=7z
  3. PKG_VERSION:=22.01
  4. PKG_SOURCE_VERSION:=2201
  5. PKG_SOURCE:=$(PKG_NAME)$(PKG_SOURCE_VERSION)-src.tar.xz
  6. PKG_SOURCE_URL:=https://7-zip.org/a/
  7. PKG_HASH:=393098730c70042392af808917e765945dc2437dee7aae3cfcc4966eb920fbc5
  8. PKG_CPE_ID:=cpe:/a:7-zip:7zip
  9. # This builds the 7zr variant which supports only 7z, so no non-LGPL code should be included
  10. PKG_LICENSE:=LGPL-2.1-or-later
  11. PKG_LICENSE_FILES:=DOC/License.txt DOC/copying.txt
  12. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
  13. include $(INCLUDE_DIR)/host-build.mk
  14. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  15. ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Bundles/Alone7z
  16. define Host/Compile
  17. $(MAKE) -C $(ALONE_DIR) -f makefile.gcc
  18. endef
  19. define Host/Install
  20. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  21. $(INSTALL_BIN) $(ALONE_DIR)/_o/7zr $(STAGING_DIR_HOST)/bin/7zr
  22. endef
  23. define Host/Clean
  24. rm -f $(STAGING_DIR_HOST)/bin/7zr
  25. endef
  26. $(eval $(call HostBuild))