Makefile 936 B

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