summaryrefslogtreecommitdiff
path: root/packages/squashfs-tools
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squashfs-tools')
-rw-r--r--packages/squashfs-tools/files/Makefile-2.2.patch21
-rw-r--r--packages/squashfs-tools/squashfs-tools-native_2.2r2.bb13
-rw-r--r--packages/squashfs-tools/squashfs-tools_2.2r2.bb23
3 files changed, 57 insertions, 0 deletions
diff --git a/packages/squashfs-tools/files/Makefile-2.2.patch b/packages/squashfs-tools/files/Makefile-2.2.patch
new file mode 100644
index 0000000000..7a16129bbc
--- /dev/null
+++ b/packages/squashfs-tools/files/Makefile-2.2.patch
@@ -0,0 +1,21 @@
+--- squashfs-tools/Makefile.orig 2005-10-26 18:15:43.641623000 +0100
++++ squashfs-tools/Makefile 2005-10-26 18:21:29.747253250 +0100
+@@ -1,12 +1,17 @@
+ INCLUDEDIR = .
++CFLAGS_R = -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
++LIBS = -lz
+
+ CFLAGS := -I$(INCLUDEDIR) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -g
+
+ mksquashfs: mksquashfs.o read_fs.o sort.o
+- $(CC) mksquashfs.o read_fs.o sort.o -lz -o $@
++ $(CC) $(LDFLAGS) mksquashfs.o read_fs.o sort.o -lz -o $@
+
+ mksquashfs.o: mksquashfs.c mksquashfs.h
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o mksquashfs.o mksquashfs.c
+
+ read_fs.o: read_fs.c read_fs.h
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o read_fs.o read_fs.c
+
+ sort.o: sort.c
++ $(CC) $(CFLAGS_R) $(CFLAGS) -c -o sort.o sort.c
diff --git a/packages/squashfs-tools/squashfs-tools-native_2.2r2.bb b/packages/squashfs-tools/squashfs-tools-native_2.2r2.bb
new file mode 100644
index 0000000000..c78f00c540
--- /dev/null
+++ b/packages/squashfs-tools/squashfs-tools-native_2.2r2.bb
@@ -0,0 +1,13 @@
+include squashfs-tools_${PV}.bb
+
+DEPENDS = "lzma-native"
+
+inherit native
+
+FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/squashfs-tools-${PV}', '${FILE_DIRNAME}/squashfs-tools', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"
+PACKAGES = ""
+
+do_stage () {
+ install -m 0755 mksquashfs ${STAGING_BINDIR}/
+ install -m 0755 mksquashfs-lzma ${STAGING_BINDIR}/
+}
diff --git a/packages/squashfs-tools/squashfs-tools_2.2r2.bb b/packages/squashfs-tools/squashfs-tools_2.2r2.bb
new file mode 100644
index 0000000000..640433fcba
--- /dev/null
+++ b/packages/squashfs-tools/squashfs-tools_2.2r2.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
+MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
+DEPENDS = "lzma"
+SECTION = "base"
+LICENSE = "GPLv2"
+PR = "r0"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/squashfs/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}.tar.gz \
+ file://Makefile-2.2.patch;patch=1 \
+ file://squashfs2.0-tools-lzma.patch;patch=1"
+S = "${WORKDIR}/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}/squashfs-tools"
+
+prefix = ""
+
+do_compile() {
+ oe_runmake mksquashfs mksquashfs-lzma
+}
+
+do_install () {
+ install -d ${D}${sbindir}
+ install -m 0755 mksquashfs ${D}${sbindir}/
+ install -m 0755 mksquashfs-lzma ${D}${sbindir}/
+}