Makefile 773 B

1234567891011121314151617181920212223242526272829303132333435
  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. --with-pic
  24. define Host/Install
  25. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  26. endef
  27. $(eval $(call HostBuild))