2006-06-27 03:44:04 +03: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 19:43:51 +03:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 23:49:31 +03:00
|
|
|
PKG_NAME:=lzma
|
2009-02-21 18:20:16 +02:00
|
|
|
PKG_VERSION:=4.32
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-21 18:20:16 +02:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
|
|
|
|
PKG_MD5SUM:=5587d6ac230ad1903d504fc3253f0e42
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
LIB_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
|
|
|
|
ALONE_DIR=$(HOST_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Compile
|
2006-06-21 09:19:43 +03:00
|
|
|
$(MAKE) -C $(LIB_DIR)
|
|
|
|
$(MAKE) -f makefile.gcc -C $(ALONE_DIR)
|
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Install
|
2007-08-07 03:04:25 +03:00
|
|
|
$(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/
|
|
|
|
$(INSTALL_BIN) $(ALONE_DIR)/lzma $(STAGING_DIR_HOST)/bin/
|
2006-06-21 09:19:43 +03:00
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2009-02-22 06:37:20 +02:00
|
|
|
define Host/Clean
|
2007-08-07 03:04:25 +03:00
|
|
|
rm -f \
|
|
|
|
$(STAGING_DIR_HOST)/lib/liblzma.a \
|
|
|
|
$(STAGING_DIR_HOST)/bin/lzma
|
2006-06-21 09:19:43 +03:00
|
|
|
endef
|
2005-04-02 19:43:51 +03:00
|
|
|
|
2006-06-21 09:19:43 +03:00
|
|
|
$(eval $(call HostBuild))
|