2010-12-11 15:20:19 +02:00
|
|
|
#
|
2012-04-02 19:25:25 +03:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2010-12-11 15:20:19 +02: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 19:25:25 +03:00
|
|
|
PKG_VERSION:=5.0.3
|
2010-12-11 15:20:19 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://tukaani.org/xz
|
2012-04-02 19:25:25 +03:00
|
|
|
PKG_MD5SUM:=8d900b742b94fa9e708ca4f5a4b29003
|
2010-12-11 15:20:19 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
|
2012-08-12 15:34:30 +03:00
|
|
|
HOST_LDFLAGS += $(HOST_STATIC_LINKING)
|
2012-08-10 22:27:00 +03:00
|
|
|
|
2010-12-11 23:29:53 +02:00
|
|
|
define Host/Install
|
2012-08-12 15:34:30 +03:00
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" \
|
|
|
|
AM_LDFLAGS="$(if $(HOST_STATIC_LINKING),-all-static)"
|
2010-12-11 23:29:53 +02:00
|
|
|
endef
|
|
|
|
|
2010-12-11 15:20:19 +02:00
|
|
|
$(eval $(call HostBuild))
|