Makefile 701 B

1234567891011121314151617181920212223242526272829303132
  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:=http://tukaani.org/xz \
  12. http://fossies.org/linux/misc
  13. PKG_MD5SUM:=f90c9a0c8b259aee2234c4e0d7fd70af
  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/Install
  22. +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) install xzlinks="unxz xzcat"
  23. endef
  24. $(eval $(call HostBuild))