squashfs-tools: add .inc usage again to avoid duplicated logic
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 19 Nov 2009 18:15:55 +0000 (16:15 -0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 19 Nov 2009 19:04:41 +0000 (17:04 -0200)
In the effort to avoid duplicated code we've added back the .inc usage
otherwise most of code and compilation logic is duplicated between 3.3
and 4.0 recipes.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes/squashfs-tools/squashfs-tools.inc
recipes/squashfs-tools/squashfs-tools_4.0.bb

index d06e1e5..aa75eaa 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
 SECTION = "base"
 LICENSE = "GPLv2"
 DEPENDS = "zlib"
-INC_PR = "r1"
+INC_PR = "r2"
 
 S = "${WORKDIR}/squashfs${@bb.data.getVar('PV',d,1).replace('r','-r')}/squashfs-tools"
 
index 4e18489..29d82a8 100644 (file)
@@ -1,36 +1,15 @@
-DESCRIPTION = "Squashfs is a highly compressed read-only filesystem for Linux."
-SECTION = "base"
-LICENSE = "GPLv2"
-DEPENDS = "zlib"
-PR = "r2"
+require squashfs-tools.inc
+PR = "${INC_PR}.2"
 
-# 2009-10-22 snapshot
-#SRC_URI = "http://www.kernel.org/pub/linux/kernel/people/pkl/squashfs4.0-lzma-snapshot.tgz"
-#S = "${WORKDIR}/squashfs4.0-lzma-snapshot/squashfs-tools"
-
-SRC_URI  = "cvs://anonymous@squashfs.cvs.sourceforge.net/cvsroot/squashfs;module=squashfs;date=${SRCDATE}"
+# This override is required since this has not yet been released
+SRC_URI  = "cvs://anonymous@squashfs.cvs.sourceforge.net/cvsroot/squashfs;module=squashfs;date=${SRCDATE} \
+            http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
 S = "${WORKDIR}/squashfs/squashfs-tools"
 
-SRC_URI += "http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2"
-
-COMP_DEFAULT = gzip
-
 EXTRA_OEMAKE += "LZMA_SUPPORT=1 LZMA_DIR=../.."
-
 TARGET_CC_ARCH += "${LDFLAGS}"
 
 # the COMP_DEFAULT macro should result in a string including quotes: "gzip"
+COMP_DEFAULT = gzip
 CFLAGS_append = ' -I. -I../../C -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE \
  -D_GNU_SOURCE -DLZMA_SUPPORT -DCOMP_DEFAULT=\\"${COMP_DEFAULT}\\" '
-
-prefix = ""
-
-do_compile() {
-       oe_runmake mksquashfs
-}
-
-do_install () {
-       install -d ${D}${sbindir}
-       install -m 0755 mksquashfs ${D}${sbindir}/
-}
-