massive cleanup of toolchain/
[openwrt.git] / toolchain / lzma / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME := lzma
4 PKG_VERSION := 432
5
6 PKG_SOURCE := $(PKG_NAME)$(PKG_VERSION).tar.bz2
7 PKG_MD5SUM := 155c1ebce5bc6710ae7ecc926226d9d7
8 PKG_SOURCE_URL := @SF/sevenzip
9
10 PKG_BUILD_DIR=$(TOOL_BUILD_DIR)/lzma-$(PKG_VERSION)/lzma
11
12 include $(INCLUDE_DIR)/host-build.mk
13
14 LIB_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
15 ALONE_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
16
17 define Build/Prepare
18 bzcat $(DL_DIR)/$(PKG_SOURCE) | tar -C $(PKG_BUILD_DIR)/ $(TAR_OPTIONS) -
19 $(PATCH) $(PKG_BUILD_DIR) ./patches
20 endef
21
22 define Build/Compile
23 $(MAKE) -C $(LIB_DIR)
24 $(MAKE) -f makefile.gcc -C $(ALONE_DIR)
25 endef
26
27 define Build/Install
28 mkdir -p $(STAGING_DIR)/host/lib
29 $(CP) $(LIB_DIR)/liblzma.a $(STAGING_DIR)/host/lib/
30 $(CP) $(ALONE_DIR)/lzma $(STAGING_DIR)/bin/
31 endef
32
33 define Build/Clean
34 rm -f $(PKG_BUILD_DIR)/liblzma.a $(PKG_BUILD_DIR)/lzma
35 endef
36
37 $(eval $(call HostBuild))
This page took 0.045135 seconds and 5 git commands to generate.