Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #
  2. # Copyright (C) 2009-2012 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:=squashfskit4
  9. PKG_VERSION:=4.14
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=squashfskit-v$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://github.com/squashfskit/squashfskit/releases/download/v$(PKG_VERSION)/
  13. PKG_HASH:=5761aaa3aedc4f7112b708367d891c9abdc1ffea972e3fe47923ddba23984d95
  14. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfskit-v$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/host-build.mk
  16. define Host/Compile
  17. +$(HOST_MAKE_VARS) \
  18. $(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \
  19. XZ_SUPPORT=1 \
  20. LZMA_XZ_SUPPORT=1 \
  21. XATTR_SUPPORT= \
  22. LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \
  23. EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
  24. mksquashfs unsquashfs
  25. endef
  26. define Host/Install
  27. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4
  28. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4
  29. endef
  30. define Host/Clean
  31. rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4
  32. rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4
  33. endef
  34. $(eval $(call HostBuild))