X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;ds=sidebyside;f=absolute-alpha%2Ftools%2Fsquashfs4%2FMakefile;fp=absolute-alpha%2Ftools%2Fsquashfs4%2FMakefile;h=ddbca1140345340cb4d2ddc5dd963567608ac73a;hb=a8b7263da6bf48970afa07a72124d076ac3a7531;hp=0000000000000000000000000000000000000000;hpb=1fa9b0a180c0148c185ba7cda7f078bcd03fe880;p=librewrt%2F.git diff --git a/absolute-alpha/tools/squashfs4/Makefile b/absolute-alpha/tools/squashfs4/Makefile new file mode 100644 index 0000000..ddbca11 --- /dev/null +++ b/absolute-alpha/tools/squashfs4/Makefile @@ -0,0 +1,39 @@ +# +# Copyright (C) 2009 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=squashfs4 +PKG_VERSION:=4.0 + +PKG_SOURCE:=squashfs$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=@SF/squashfs +PKG_MD5SUM:=a3c23391da4ebab0ac4a75021ddabf96 +PKG_CAT:=zcat + +HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/squashfs$(PKG_VERSION) + +include $(INCLUDE_DIR)/host-build.mk + +define Host/Compile + $(MAKE) -C $(HOST_BUILD_DIR)/squashfs-tools \ + USE_LZMA=1 \ + LZMA_CFLAGS="-I$(STAGING_DIR_HOST)/include -DUSE_LZMA" \ + LZMA_LIB="$(STAGING_DIR_HOST)/lib/liblzma.a" \ + mksquashfs unsquashfs +endef + +define Host/Install + $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/mksquashfs $(STAGING_DIR_HOST)/bin/mksquashfs4 + $(INSTALL_BIN) $(HOST_BUILD_DIR)/squashfs-tools/unsquashfs $(STAGING_DIR_HOST)/bin/unsquashfs4 +endef + +define Host/Clean + rm -f $(STAGING_DIR_HOST)/bin/mksquashfs4 + rm -f $(STAGING_DIR_HOST)/bin/unsquashfs4 +endef + +$(eval $(call HostBuild))