2006-06-27 00:44:04 +00: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 16:43:51 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_NAME:=lzma
|
|
|
|
PKG_VERSION:=432
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-09-24 20:49:31 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/sevenzip
|
|
|
|
PKG_MD5SUM:=155c1ebce5bc6710ae7ecc926226d9d7
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2007-08-07 00:04:25 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/lzma
|
|
|
|
PKG_UNPACK:=bzcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/ $(TAR_OPTIONS)
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
LIB_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
|
|
|
|
ALONE_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(LIB_DIR)
|
|
|
|
$(MAKE) -f makefile.gcc -C $(ALONE_DIR)
|
|
|
|
endef
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Install
|
2007-08-07 00:04:25 +00:00
|
|
|
$(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/
|
|
|
|
$(INSTALL_BIN) $(ALONE_DIR)/lzma $(STAGING_DIR_HOST)/bin/
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
define Build/Clean
|
2007-08-07 00:04:25 +00:00
|
|
|
rm -f \
|
|
|
|
$(STAGING_DIR_HOST)/lib/liblzma.a \
|
|
|
|
$(STAGING_DIR_HOST)/bin/lzma
|
2006-06-21 06:19:43 +00:00
|
|
|
endef
|
2005-04-02 16:43:51 +00:00
|
|
|
|
2006-06-21 06:19:43 +00:00
|
|
|
$(eval $(call HostBuild))
|