Makefile 926 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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.2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@SF/lzmautils \
  12. http://tukaani.org/xz
  13. PKG_MD5SUM:=6ff5f57a4b9167155e35e6da8b529de69270efb2b4cf3fbabf41a4ee793840b5
  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. define Host/Prepare
  22. $(call Host/Prepare/Default)
  23. # FreeBSD portability fix
  24. sed -i -e 's|#if defined(HAVE_BYTESWAP_H)|& \&\& !defined(__FreeBSD__)|' \
  25. $(HOST_BUILD_DIR)/src/common/tuklib_integer.h
  26. endef
  27. define Host/Install
  28. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  29. endef
  30. $(eval $(call HostBuild))