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