Makefile 860 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.4.3
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=@SF/lzmautils \
  12. http://tukaani.org/xz
  13. PKG_HASH:=9243a04598d7a70c1f567a0143a255581ac5c64b140fd55fd5cbc1e00b0e6f90
  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. --disable-nls \
  24. --with-pic
  25. define Host/Install
  26. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  27. endef
  28. define Host/Uninstall
  29. -$(call Host/Compile/Default,uninstall)
  30. endef
  31. $(eval $(call HostBuild))