scummvm/files/gcc-4.x.x-accept.patch: Makes scummvm approve of gcc 4.x.x
authorKristoffer Ericson <kristoffer_e1@hotmail.com>
Sat, 1 Jul 2006 17:36:39 +0000 (17:36 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 1 Jul 2006 17:36:39 +0000 (17:36 +0000)
* Adds gcc 4.x.x to accept list
scummvm/files/sh3-linux-new-arch.patch: Makes scummvm know of sh3
* Adds linux-sh3 to the configure script of known archs
scummvm/files/tail-obselete-fix.patch: sets -n 1 instead of -1
* Sets tail -n 1 instead of -1, kept for future reference.

packages/scummvm/files/gcc-4.x.x-accept.patch [new file with mode: 0644]
packages/scummvm/files/sh3-linux-new-arch.patch [new file with mode: 0644]
packages/scummvm/files/tail-obselete-fix.patch [new file with mode: 0644]
packages/scummvm/scummvm_0.6.1b.bb

diff --git a/packages/scummvm/files/gcc-4.x.x-accept.patch b/packages/scummvm/files/gcc-4.x.x-accept.patch
new file mode 100644 (file)
index 0000000..f69eb0f
--- /dev/null
@@ -0,0 +1,11 @@
+--- scummvm-0.6.1b/configure_orig      2006-07-01 16:42:17.000000000 +0000
++++ scummvm-0.6.1b/configure   2006-07-01 16:48:04.000000000 +0000
+@@ -362,7 +362,7 @@
+ fi
+ case $cxx_version in
+-      2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9])
++      2.95.[2-9]|2.95.[2-9][-.]*|3.[0-9]|3.[0-9].[0-9]|4.[0-9].[0-9])
+               _cxx_major=`echo $cxx_version | cut -d '.' -f 1`
+               _cxx_minor=`echo $cxx_version | cut -d '.' -f 2`
+               cxx_version="$cxx_version, ok"
diff --git a/packages/scummvm/files/sh3-linux-new-arch.patch b/packages/scummvm/files/sh3-linux-new-arch.patch
new file mode 100644 (file)
index 0000000..b59d727
--- /dev/null
@@ -0,0 +1,18 @@
+--- scummvm-0.6.1b/configure_orig      2006-07-01 17:15:30.000000000 +0000
++++ scummvm-0.6.1b/configure   2006-07-01 17:19:41.000000000 +0000
+@@ -462,6 +462,15 @@
+           type_2_byte='short'
+           type_4_byte='int'
+           ;;
++      sh3-linux)
++          echo "Crosscompiling to $_host, forcing endianess, aligment and type sizes"
++          DEFINES="$DEFINES -DUNIX"
++          _def_endianess='#define SCUMM_LITTLE_ENDIAN'
++          _def_align='#define SCUMM_NEED_ALiGMENT'
++          type_1_byte='char'
++          type_2_byte='short'
++          type_4_byte='int'
++          ;;
+       *)
+           echo "Cross-compiling to unknown target, please add your target to configure."
+           exit 1
diff --git a/packages/scummvm/files/tail-obselete-fix.patch b/packages/scummvm/files/tail-obselete-fix.patch
new file mode 100644 (file)
index 0000000..1737133
--- /dev/null
@@ -0,0 +1,11 @@
+--- scummvm-0.6.1b/configure_orig      2006-07-01 16:42:17.000000000 +0000
++++ scummvm-0.6.1b/configure   2006-07-01 16:43:12.000000000 +0000
+@@ -355,7 +355,7 @@
+ echocheck "compiler version"
+-cxx_name=`( $cc -v ) 2>&1 | tail -1 | cut -d ' ' -f 1`
++cxx_name=`( $cc -v ) 2>&1 | tail -n 1 | cut -d ' ' -f 1`
+ cxx_version=`( $CXX -dumpversion ) 2>&1`
+ if test "$?" -gt 0; then
+       cxx_version="not found"
index 6f805b6..a2c0459 100644 (file)
@@ -1,6 +1,9 @@
 include scummvm.inc
 DEPENDS = "virtual/libsdl libmad tremor libogg zlib libmpeg2"
-SRC_URI += " file://mouse.patch;patch=1 "
+SRC_URI += " file://mouse.patch;patch=1 \
+             file://gcc-4.x.x-accept.patch;patch=1 \
+            file://sh3-linux-new-arch.patch;patch=1 \
+            file://tail-obselete-fix.patch;patch=1"
 
 do_compile() {
        oe_runmake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS} -lmpeg2" \