Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #
  2. # Copyright (C) 2006-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:=squashfs4
  9. PKG_CPE_ID:=cpe:/a:phillip_lougher:squashfs
  10. PKG_VERSION:=4.6.1
  11. PKG_RELEASE=3
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE_URL:=https://github.com/plougher/squashfs-tools
  14. PKG_SOURCE_DATE:=2023-03-26
  15. PKG_SOURCE_VERSION:=d8cb82d9840330f9344ec37b992595b5d7b44184
  16. PKG_MIRROR_HASH:=fc625af657ca284d69fbc32e3bb572d0afd566cf816b7c1c1b66dda0a0c2760a
  17. HOST_BUILD_PARALLEL:=1
  18. include $(INCLUDE_DIR)/host-build.mk
  19. define Host/Compile
  20. +$(HOST_MAKE_VARS) \
  21. $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)/squashfs-tools \
  22. XZ_SUPPORT=1 \
  23. LZMA_XZ_SUPPORT=1 \
  24. XZ_EXTENDED_OPTIONS=1 \
  25. EXTRA_CFLAGS="-I$(STAGING_DIR_HOST)/include" \
  26. mksquashfs unsquashfs
  27. endef
  28. define Host/Install
  29. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4
  30. $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4
  31. endef
  32. define Host/Clean
  33. rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4
  34. rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4
  35. endef
  36. $(eval $(call HostBuild))