2006-06-27 02:44:04 +02:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2005-04-02 18:43:51 +02:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2009-05-23 15:21:43 +02:00
|
|
|
PKG_NAME:=lzma-old
|
2009-02-21 17:20:16 +01:00
|
|
|
PKG_VERSION:=4.32
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-05-23 15:21:43 +02:00
|
|
|
PKG_SOURCE:=lzma-$(PKG_VERSION).tar.bz2
|
2021-01-30 21:54:44 +01:00
|
|
|
PKG_SOURCE_URL:=@OPENWRT
|
2016-12-16 17:32:10 +01:00
|
|
|
PKG_HASH:=49053e4bb5e0646a841d250d9cb81f7714f5fff04a133216c4748163567acc3d
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-05-23 15:21:43 +02:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/lzma-$(PKG_VERSION)
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2006-06-21 08:19:43 +02:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
LIB_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
|
|
|
|
ALONE_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Compile
|
2018-04-15 19:24:02 +02:00
|
|
|
+$(HOST_MAKE_VARS) \
|
2006-06-21 08:19:43 +02:00
|
|
|
$(MAKE) -C $(LIB_DIR)
|
2018-04-15 19:24:02 +02:00
|
|
|
+$(HOST_MAKE_VARS) \
|
2006-06-21 08:19:43 +02:00
|
|
|
$(MAKE) -f makefile.gcc -C $(ALONE_DIR)
|
|
|
|
endef
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Install
|
2009-05-04 19:04:03 +02:00
|
|
|
$(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/liblzma-old.a
|
2006-06-21 08:19:43 +02:00
|
|
|
endef
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2009-02-22 05:37:20 +01:00
|
|
|
define Host/Clean
|
2011-04-03 03:02:03 +02:00
|
|
|
rm -f $(STAGING_DIR_HOST)/lib/liblzma-old.a
|
2006-06-21 08:19:43 +02:00
|
|
|
endef
|
2005-04-02 18:43:51 +02:00
|
|
|
|
2006-06-21 08:19:43 +02:00
|
|
|
$(eval $(call HostBuild))
|