b7b9429244eb871ed19ad10c54575abce513ae1d
[openwrt/staging/nbd.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.6.1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=https://github.com/tukaani-project/xz/releases/download/v$(PKG_VERSION)
14 PKG_HASH:=d300422649a0124b1121630be559c890ceedf32667d7064b8128933166c217c8
15 PKG_CPE_ID:=cpe:/a:tukaani:xz
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 HOSTCC := $(HOSTCC_NOCACHE)
22 HOSTCXX := $(HOSTCXX_NOCACHE)
23
24 HOST_CONFIGURE_ARGS += \
25 --enable-static=yes \
26 --enable-shared=no \
27 --disable-doc \
28 --disable-nls \
29 --with-pic
30
31 define Host/Install
32 +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
33 endef
34
35 define Host/Uninstall
36 -$(call Host/Compile/Default,uninstall)
37 endef
38
39 $(eval $(call HostBuild))