2010-12-11 13:20:19 +00:00
|
|
|
#
|
2012-04-02 16:25:25 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2010-12-11 13:20:19 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=xz
|
2012-04-02 16:25:25 +00:00
|
|
|
PKG_VERSION:=5.0.3
|
2010-12-11 13:20:19 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://tukaani.org/xz
|
2012-04-02 16:25:25 +00:00
|
|
|
PKG_MD5SUM:=8d900b742b94fa9e708ca4f5a4b29003
|
2010-12-11 13:20:19 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-08-12 12:34:30 +00:00
|
|
|
HOST_LDFLAGS += $(HOST_STATIC_LINKING)
|
2012-08-10 19:27:00 +00:00
|
|
|
|
2010-12-11 21:29:53 +00:00
|
|
|
define Host/Install
|
2012-08-12 12:34:30 +00:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" \
|
|
|
|
AM_LDFLAGS="$(if $(HOST_STATIC_LINKING),-all-static)"
|
2010-12-11 21:29:53 +00:00
|
|
|
endef
|
|
|
|
|
2010-12-11 13:20:19 +00:00
|
|
|
$(eval $(call HostBuild))
|