37a9d79efcbb4be7b5829cf26274bcbd5af0c993
[openwrt/openwrt.git] / tools / xz / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=xz
10 PKG_VERSION:=5.2.8
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/lzmautils \
14 http://tukaani.org/xz
15 PKG_HASH:=1f8a43d9fcf325d049a31fe4514dc8c44a6d00ce8860d48c4212d1e349d2a3ed
16 PKG_CPE_ID:=cpe:/a:tukaani:xz
17
18 HOST_BUILD_PARALLEL:=1
19
20 include $(INCLUDE_DIR)/host-build.mk
21
22 HOSTCC := $(HOSTCC_NOCACHE)
23 HOSTCXX := $(HOSTCXX_NOCACHE)
24
25 HOST_CONFIGURE_ARGS += \
26 --enable-static=yes \
27 --enable-shared=no \
28 --disable-doc \
29 --disable-nls \
30 --with-pic
31
32 define Host/Install
33 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
34 endef
35
36 define Host/Uninstall
37 -$(call Host/Compile/Default,uninstall)
38 endef
39
40 $(eval $(call HostBuild))