2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/lzmautils \
15 PKG_HASH:=fd9ca16de1052aac899ad3495ad20dfa906c27b4a5070102a2ec35ca3a4740c1
17 HOST_BUILD_PARALLEL:=1
19 include $(INCLUDE_DIR)/host-build.mk
21 HOSTCC := $(HOSTCC_NOCACHE)
22 HOSTCXX := $(HOSTCXX_NOCACHE)
24 HOST_CONFIGURE_ARGS += \
29 $(call Host/Prepare/Default)
31 # FreeBSD portability fix
32 sed -i -e 's|#if defined(HAVE_BYTESWAP_H)|& \&\& !defined(__FreeBSD__)|' \
33 $(HOST_BUILD_DIR)/src/common/tuklib_integer.h
37 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
40 $(eval $(call HostBuild))