diff options
-rw-r--r-- | packages/scummvm/files/sh3-arch-0.9.0+.patch | 18 | ||||
-rw-r--r-- | packages/scummvm/scummvm.inc | 3 | ||||
-rw-r--r-- | packages/scummvm/scummvm_0.9.0.bb | 10 |
3 files changed, 29 insertions, 2 deletions
diff --git a/packages/scummvm/files/sh3-arch-0.9.0+.patch b/packages/scummvm/files/sh3-arch-0.9.0+.patch new file mode 100644 index 0000000000..3cd0505654 --- /dev/null +++ b/packages/scummvm/files/sh3-arch-0.9.0+.patch @@ -0,0 +1,18 @@ +--- scummvm-0.9.0/configure_orig 2006-07-01 18:16:04.000000000 +0000 ++++ scummvm-0.9.0/configure 2006-07-01 18:19:09.000000000 +0000 +@@ -762,6 +762,15 @@ + type_2_byte='short' + type_4_byte='int' + ;; ++ sh3-linux) ++ echo "Cross-compiling to $_host, forcing endianness, aligment and type sizes" ++ DEFINES="$DEFINES -DUNIX" ++ _def_endianness='#define SCUMM_LITTLE_ENDIAN' ++ _def_align='#define SCUMM_NEED_ALIGMENT' ++ type_1_byte='char' ++ type_2_byte='short' ++ type_4_byte='int' ++ ;; + ppc-amigaos) + echo "Cross-compiling to $_host, forcing endianness, alignment and type sizes" + _def_endianness='#define SCUMM_BIG_ENDIAN' diff --git a/packages/scummvm/scummvm.inc b/packages/scummvm/scummvm.inc index 88c6f13d9d..e39397be06 100644 --- a/packages/scummvm/scummvm.inc +++ b/packages/scummvm/scummvm.inc @@ -3,8 +3,7 @@ SECTION = "games" PRIORITY = "optional" LICENSE = "GPL" -SRC_URI = "${SOURCEFORGE_MIRROR}/scummvm/scummvm-${PV}.tar.bz2 \ - file://tremor.patch;patch=1" +SRC_URI = "http://puzzle.dl.sourceforge.net/scummvm/scummvm-${PV}.tar.bz2" inherit autotools diff --git a/packages/scummvm/scummvm_0.9.0.bb b/packages/scummvm/scummvm_0.9.0.bb new file mode 100644 index 0000000000..fd89e8fa1c --- /dev/null +++ b/packages/scummvm/scummvm_0.9.0.bb @@ -0,0 +1,10 @@ +include scummvm.inc +DEPENDS = "virtual/libsdl libmad tremor libogg zlib libmpeg2" +SRC_URI += "file://sh3-arch-0.9.0+.patch;patch=1" + +do_compile() { + oe_runmake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS} -lmpeg2" \ + DEFINES="-DUNIX -DSCUMM_NEED_ALIGNMENT -DUSE_MAD -DUSE_VORBIS -DUSE_ZLIB -DUSE_MPEG2" +} + + |