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-08-12 15:48:49 +03:00
|
|
|
PKG_VERSION:=5.0.4
|
2010-12-11 15:20:19 +02:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=http://tukaani.org/xz
|
2012-08-12 15:48:49 +03:00
|
|
|
PKG_MD5SUM:=741cd3a5f64b23b7bac56ec5b2258715
|
2010-12-11 15:20:19 +02:00
|
|
|
|
2012-09-15 17:17:40 +03:00
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
|
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-09-15 17:17:40 +03:00
|
|
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat" \
|
2012-08-12 15:34:30 +03:00
|
|
|
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))
|