2022-07-23 20:53:18 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=7z
|
2023-07-19 13:45:10 +00:00
|
|
|
PKG_VERSION:=23.01
|
2022-07-23 20:53:18 +00:00
|
|
|
|
2024-07-11 07:54:29 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)$(subst .,,$(PKG_VERSION))-src.tar.xz
|
2022-07-23 20:53:18 +00:00
|
|
|
PKG_SOURCE_URL:=https://7-zip.org/a/
|
2023-07-19 13:45:10 +00:00
|
|
|
PKG_HASH:=356071007360e5a1824d9904993e8b2480b51b570e8c9faf7c0f58ebe4bf9f74
|
2024-07-11 07:54:29 +00:00
|
|
|
|
|
|
|
PKG_CPE_ID:=cpe:/a:7-zip:7-zip
|
2022-07-23 20:53:18 +00:00
|
|
|
|
|
|
|
# This builds the 7zr variant which supports only 7z, so no non-LGPL code should be included
|
|
|
|
PKG_LICENSE:=LGPL-2.1-or-later
|
|
|
|
PKG_LICENSE_FILES:=DOC/License.txt DOC/copying.txt
|
|
|
|
|
2024-07-11 07:54:29 +00:00
|
|
|
HOST_MAKE_PATH:=CPP/7zip/Bundles/Alone7z
|
2022-07-23 20:53:18 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2024-07-11 07:54:29 +00:00
|
|
|
TAR_OPTIONS := -C $(HOST_BUILD_DIR) $(TAR_OPTIONS)
|
|
|
|
HOST_MAKE_FLAGS += -f makefile.gcc
|
2022-07-23 20:53:18 +00:00
|
|
|
|
|
|
|
define Host/Install
|
2024-07-11 07:54:29 +00:00
|
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/$(HOST_MAKE_PATH)/_o/7zr $(STAGING_DIR_HOST)/bin/
|
2022-07-23 20:53:18 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Clean
|
|
|
|
rm -f $(STAGING_DIR_HOST)/bin/7zr
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|