2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)$(PKG_VERSION
).
tar.bz2
13 PKG_SOURCE_URL
:=@SF
/sevenzip
14 PKG_MD5SUM
:=155c1ebce5bc6710ae7ecc926226d9d7
16 PKG_BUILD_DIR
:=$(TOOL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)/lzma
18 include $(INCLUDE_DIR
)/host-build.mk
20 LIB_DIR
=$(PKG_BUILD_DIR
)/C
/7zip
/Compress
/LZMA_Lib
21 ALONE_DIR
=$(PKG_BUILD_DIR
)/C
/7zip
/Compress
/LZMA_Alone
24 bzcat
$(DL_DIR
)/$(PKG_SOURCE
) |
$(TAR
) -C
$(PKG_BUILD_DIR
)/ $(TAR_OPTIONS
)
25 $(PATCH
) $(PKG_BUILD_DIR
) .
/patches
30 $(MAKE
) -f makefile.gcc
-C
$(ALONE_DIR
)
34 mkdir
-p
$(STAGING_DIR
)/host
/lib
35 $(CP
) $(LIB_DIR
)/liblzma.a
$(STAGING_DIR
)/host
/lib
/
36 mkdir
-p
$(STAGING_DIR
)/bin
37 $(CP
) $(ALONE_DIR
)/lzma
$(STAGING_DIR
)/bin
/
41 rm -f
$(STAGING_DIR
)/host
/lib
/liblzma.a
$(STAGING_DIR
)/bin
/lzma
44 $(eval
$(call HostBuild
))