Makefile 953 B

123456789101112131415161718192021222324252627282930313233343536
  1. #
  2. # Copyright (C) 2006 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:=lzma
  9. PKG_VERSION:=4.65
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  11. PKG_SOURCE_URL:=http://downloads.librecmc.org/sources/
  12. PKG_MD5SUM:=434e51a018b4c8ef377bf81520a53af0
  13. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-$(PKG_VERSION)
  14. include $(INCLUDE_DIR)/host-build.mk
  15. UTIL_DIR=$(HOST_BUILD_DIR)/C/LzmaUtil
  16. ALONE_DIR=$(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone
  17. define Host/Compile
  18. $(MAKE) -C $(UTIL_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
  19. $(MAKE) -C $(ALONE_DIR) -f makefile.gcc LDFLAGS="$(HOST_STATIC_LINKING)"
  20. endef
  21. define Host/Install
  22. $(INSTALL_DIR) $(STAGING_DIR_HOST)/bin
  23. $(INSTALL_BIN) $(HOST_BUILD_DIR)/CPP/7zip/Compress/LZMA_Alone/lzma_alone $(STAGING_DIR_HOST)/bin/lzma
  24. endef
  25. define Host/Clean
  26. endef
  27. $(eval $(call HostBuild))