18fe030886ccb34fcfa2daca5fcdde6e8ef5a9d0
[openwrt/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:=4.65
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
14 PKG_MD5SUM:=434e51a018b4c8ef377bf81520a53af0
15
16 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
17
18 include $(INCLUDE_DIR)/host-build.mk
19
20 UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
21
22 define Host/Compile
23 $(MAKE) -C $(UTIL_DIR) -f makefile.gcc
24 endef
25
26 define Host/Install
27 $(INSTALL_DIR) $(STAGING_DIR_HOST)/lib $(STAGING_DIR_HOST)/include
28 $(CP) $(HOST_BUILD_DIR)/C/*.h $(STAGING_DIR_HOST)/include/
29 $(CP) $(UTIL_DIR)/liblzma.a $(STAGING_DIR_HOST)/lib/
30 endef
31
32 define Host/Clean
33 endef
34
35 $(eval $(call HostBuild))