1
0

Makefile 730 B

123456789101112131415161718192021222324252627282930313233
  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. PKG_NAME:=xz
  9. PKG_VERSION:=5.2.4
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@SF/lzmautils \
  12. http://tukaani.org/xz
  13. PKG_HASH:=3313fd2a95f43d88e44264e6b015e7d03053e681860b0d5d3f9baca79c57b7bf
  14. HOST_BUILD_PARALLEL:=1
  15. include $(INCLUDE_DIR)/host-build.mk
  16. HOSTCC := $(HOSTCC_NOCACHE)
  17. HOSTCXX := $(HOSTCXX_NOCACHE)
  18. HOST_CONFIGURE_ARGS += \
  19. --enable-static=yes \
  20. --enable-shared=no \
  21. --disable-doc
  22. define Host/Install
  23. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  24. endef
  25. $(eval $(call HostBuild))