]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Added a patch for "sqlzma" + squashfs-3.4.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 Oct 2008 14:01:51 +0000 (14:01 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 18 Oct 2008 14:01:51 +0000 (14:01 +0000)
lfs/squashfs

index 7f7a2fd5a24ce5f17f14a32f2b15f2601f2d418e..3f2eeb59f90edf7dad3970e2573dffdb75897f27 100644 (file)
@@ -37,7 +37,9 @@ TARGET     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 # Top-level Rules
 ###############################################################################
 
-objects = $(DL_FILE)
+objects = $(DL_FILE) \
+       lzma457.tar.bz2 \
+       sqlzma-$(VER)-1.patch
 
 install : $(TARGET)
 
@@ -53,7 +55,17 @@ $(objects) :
 $(TARGET) : 
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP)/squashfs-tools && make $(PARALLELISMFLAGS)
+       -mkdir -p $(DIR_APP)/lzma
+       cd $(DIR_APP) && tar xfj $(DIR_DL)/lzma457.tar.bz2 -C lzma
+       cd $(DIR_APP) && patch -Np1 -i $(DIR_PATCHES)/sqlzma-$(VER)-1.patch
+
+       cd $(DIR_APP)/lzma* && make Sqlzma=$$(pwd)/../squashfs-tools -C C/Compress/Lzma -f sqlzma.mk
+       cd $(DIR_APP)/lzma* && make Sqlzma=$$(pwd)/../squashfs-tools -C CPP/7zip/Compress/LZMA_Alone -f sqlzma.mk
+
+       cd $(DIR_APP)/squashfs-tools && make $(PARALLELISMFLAGS) \
+               Sqlzma=$$(pwd) \
+               LzmaAlone=$$(pwd)/../lzma/CPP/7zip/Compress/LZMA_Alone \
+               LzmaC=$$(pwd)/../lzma/C/Compress/Lzma
        cd $(DIR_APP)/squashfs-tools && install -m 755 mksquashfs /usr/sbin
        cd $(DIR_APP)/squashfs-tools && install -m 755 unsquashfs /usr/sbin
        @rm -rf $(DIR_APP)