You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
![]()
18 years ago
|
#
|
||
|
# Copyright (C) 2006 OpenWrt.org
|
||
|
#
|
||
|
# This is free software, licensed under the GNU General Public License v2.
|
||
|
# See /LICENSE for more information.
|
||
|
#
|
||
![]()
20 years ago
|
include $(TOPDIR)/rules.mk
|
||
|
|
||
![]()
18 years ago
|
PKG_NAME:=lzma
|
||
|
PKG_VERSION:=432
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.bz2
|
||
|
PKG_SOURCE_URL:=@SF/sevenzip
|
||
|
PKG_MD5SUM:=155c1ebce5bc6710ae7ecc926226d9d7
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
PKG_BUILD_DIR:=$(TOOL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/lzma
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
include $(INCLUDE_DIR)/host-build.mk
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
LIB_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
|
||
|
ALONE_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
define Build/Prepare
|
||
|
bzcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/ $(TAR_OPTIONS) -
|
||
|
$(PATCH) $(PKG_BUILD_DIR) ./patches
|
||
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
define Build/Compile
|
||
|
$(MAKE) -C $(LIB_DIR)
|
||
|
$(MAKE) -f makefile.gcc -C $(ALONE_DIR)
|
||
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
define Build/Install
|
||
|
mkdir -p $(STAGING_DIR)/host/lib
|
||
|
$(CP) $(LIB_DIR)/liblzma.a $(STAGING_DIR)/host/lib/
|
||
![]()
18 years ago
|
mkdir -p $(STAGING_DIR)/bin
|
||
![]()
18 years ago
|
$(CP) $(ALONE_DIR)/lzma $(STAGING_DIR)/bin/
|
||
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
define Build/Clean
|
||
![]()
18 years ago
|
rm -f $(STAGING_DIR)/host/lib/liblzma.a $(STAGING_DIR)/bin/lzma
|
||
![]()
18 years ago
|
endef
|
||
![]()
20 years ago
|
|
||
![]()
18 years ago
|
$(eval $(call HostBuild))
|