# 
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk

PKG_NAME:=lzma
PKG_VERSION:=4.65

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
PKG_MD5SUM:=434e51a018b4c8ef377bf81520a53af0

HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)

include $(INCLUDE_DIR)/host-build.mk

UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone

define Host/Compile
	$(MAKE) -C $(UTIL_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
	$(MAKE) -C $(ALONE_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
endef

define Host/Install
	$(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
	$(INSTALL_BIN) $(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone/lzma_alone $(STAGING_DIR_HOST)/bin/lzma
endef

define Host/Clean
endef

$(eval $(call HostBuild))
orm.submit();'>
<option value='attitude_adjustment'>attitude_adjustment</option>
<option value='barrier_breaker'>barrier_breaker</option>
<option value='chaos_calmer'>chaos_calmer</option>
<option value='lede-17.01'>lede-17.01</option>
<option value='less-old-master'>less-old-master</option>
<option value='master'>master</option>
<option value='old-master'>old-master</option>
<option value='openwrt-18.06'>openwrt-18.06</option>
<option value='openwrt-19.07'>openwrt-19.07</option>
<option value='upstream'>upstream</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>upstream openwrt</td><td class='sub right'>James</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/openwrt/upstream/about/?h=v19.07.6'>about</a><a href='/cgit.cgi/openwrt/upstream/?h=v19.07.6'>summary</a><a href='/cgit.cgi/openwrt/upstream/refs/?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>refs</a><a href='/cgit.cgi/openwrt/upstream/log/include/uclibc++.mk?h=v19.07.6'>log</a><a class='active' href='/cgit.cgi/openwrt/upstream/tree/include/uclibc++.mk?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>tree</a><a href='/cgit.cgi/openwrt/upstream/commit/include/uclibc++.mk?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>commit</a><a href='/cgit.cgi/openwrt/upstream/diff/include/uclibc++.mk?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>diff</a><a href='/cgit.cgi/openwrt/upstream/stats/include/uclibc++.mk?h=v19.07.6'>stats</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/openwrt/upstream/log/include/uclibc++.mk'>
<input type='hidden' name='h' value='v19.07.6'/><input type='hidden' name='id' value='2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/openwrt/upstream/tree/?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>root</a>/<a href='/cgit.cgi/openwrt/upstream/tree/include?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>include</a>/<a href='/cgit.cgi/openwrt/upstream/tree/include/uclibc++.mk?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>uclibc++.mk</a></div><div class='content'>blob: a1a61f26d419fdbebb0f9f94a60010a398a17f31 (<a href='/cgit.cgi/openwrt/upstream/plain/include/uclibc++.mk?h=v19.07.6&amp;id=2f2ed5c5c161d77ae94f70c07caaeb1edbb419df'>plain</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
</pre></td>
<td class='lines'><pre><code>