add ac_cv_file__dev_zero to sitefiles
[openwrt.git] / tools / lzma / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=lzma
10 PKG_VERSION:=432
11
12 PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/sevenzip
14 PKG_MD5SUM:=155c1ebce5bc6710ae7ecc926226d9d7
15
16 PKG_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)/lzma
17 PKG_UNPACK:=bzcat $(DL_DIR)/$(PKG_SOURCE) | $(TAR) -C $(PKG_BUILD_DIR)/ $(TAR_OPTIONS)
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 LIB_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Lib
22 ALONE_DIR=$(PKG_BUILD_DIR)/C/7zip/Compress/LZMA_Alone
23
24 define Build/Compile
25 $(MAKE) -C $(LIB_DIR)
26 $(MAKE) -f makefile.gcc -C $(ALONE_DIR)
27 endef
28
29 define Build/Install
30 $(INSTALL_DATA) $(LIB_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/
31 $(INSTALL_BIN) $(ALONE_DIR)/lzma $(STAGING_DIR_HOST)/bin/
32 endef
33
34 define Build/Clean
35 rm -f \
36 $(STAGING_DIR_HOST)/lib/liblzma.a \
37 $(STAGING_DIR_HOST)/bin/lzma
38 endef
39
40 $(eval $(call HostBuild))
This page took 0.056636 seconds and 5 git commands to generate.