1
0

Makefile 760 B

12345678910111213141516171819202122232425262728293031323334
  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. PKG_CPE_ID:=cpe:/a:tukaani:xz
  15. HOST_BUILD_PARALLEL:=1
  16. include $(INCLUDE_DIR)/host-build.mk
  17. HOSTCC := $(HOSTCC_NOCACHE)
  18. HOSTCXX := $(HOSTCXX_NOCACHE)
  19. HOST_CONFIGURE_ARGS += \
  20. --enable-static=yes \
  21. --enable-shared=no \
  22. --disable-doc
  23. define Host/Install
  24. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  25. endef
  26. $(eval $(call HostBuild))