| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2006 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 | |
| 9 | PKG_NAME:=lzma |
| 10 | PKG_VERSION:=4.65 |
| 11 | |
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 |
| 13 | PKG_SOURCE_URL:=@OPENWRT |
| 14 | PKG_HASH:=dcbdb5f4843eff638e4a5e8be0e2486a3c5483df73c70823618db8e66f609ec2 |
| 15 | |
| 16 | HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION) |
| 17 | |
| 18 | include $(INCLUDE_DIR)/host-build.mk |
| 19 | |
| 20 | UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil |
| 21 | ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone |
| 22 | |
| 23 | define Host/Compile |
| 24 | $(MAKE) -C $(UTIL_DIR) -f makefile.gcc |
| 25 | $(MAKE) -C $(ALONE_DIR) -f makefile.gcc |
| 26 | endef |
| 27 | |
| 28 | define Host/Install |
| 29 | $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin |
| 30 | $(INSTALL_BIN) $(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone/lzma_alone $(STAGING_DIR_HOST)/bin/lzma |
| 31 | endef |
| 32 | |
| 33 | define Host/Clean |
| 34 | rm -f $(STAGING_DIR_HOST)/bin/lzma |
| 35 | endef |
| 36 | |
| 37 | $(eval $(call HostBuild)) |