From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/cnc/openredalert/gcc43-fix.patch | 13 +++++++++++ recipes/cnc/openredalert/openredalert-launcher | 3 +++ recipes/cnc/openredalert_r438.bb | 31 ++++++++++++++++++++++++++ recipes/cnc/redalert-demo-gamedata.bb | 15 +++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 recipes/cnc/openredalert/gcc43-fix.patch create mode 100755 recipes/cnc/openredalert/openredalert-launcher create mode 100644 recipes/cnc/openredalert_r438.bb create mode 100644 recipes/cnc/redalert-demo-gamedata.bb (limited to 'recipes/cnc') diff --git a/recipes/cnc/openredalert/gcc43-fix.patch b/recipes/cnc/openredalert/gcc43-fix.patch new file mode 100644 index 0000000000..aa99d991b7 --- /dev/null +++ b/recipes/cnc/openredalert/gcc43-fix.patch @@ -0,0 +1,13 @@ +Index: openredalert-0.0+svnr438-r0/src/misc/Compression.h +=================================================================== +--- openredalert-0.0+svnr438-r0.orig/src/misc/Compression.h 2008-09-21 15:20:33.000000000 +0200 ++++ openredalert-0.0+svnr438-r0/src/misc/Compression.h 2008-09-21 15:21:10.000000000 +0200 +@@ -20,6 +20,8 @@ + + #include "SDL/SDL_types.h" + ++#include ++ + /** + * Various decompression routines for format80, format40, and + * format20 type graphics diff --git a/recipes/cnc/openredalert/openredalert-launcher b/recipes/cnc/openredalert/openredalert-launcher new file mode 100755 index 0000000000..4e5dad4bb6 --- /dev/null +++ b/recipes/cnc/openredalert/openredalert-launcher @@ -0,0 +1,3 @@ +#!/bin/sh + +( cd /usr/share/games/redalert && ./openredalert ) diff --git a/recipes/cnc/openredalert_r438.bb b/recipes/cnc/openredalert_r438.bb new file mode 100644 index 0000000000..098f293b2e --- /dev/null +++ b/recipes/cnc/openredalert_r438.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "Game engine to run Red Alert 1" +LICENSE = "GPLv2" + +DEPENDS = "virtual/libsdl libsdl-mixer" + +SRC_URI = "http://openredalert.googlecode.com/files/openredalert-${PV}-src.tar.gz \ + file://gcc43-fix.patch;patch=1 \ + file://openredalert-launcher" + +PR = "r1" + +S = "${WORKDIR}" + +CFLAGS_append = " -I. -I${STAGING_INCDIR}" + +do_compile() { + cd ${S}/src ; cp ${S}/makefile . + oe_runmake -e +} + +do_install() { + install -d ${D}/${datadir}/games/redalert/ + cp -pPr ${S}/data ${D}/${datadir}/games/redalert/ + install -m 0755 ${S}/src/openredalert ${D}/${datadir}/games/redalert/ + + install -d ${D}/${bindir} + install -m 0755 ${S}/openredalert-launcher ${D}/${bindir} +} + +FILES_${PN} += "${datadir}/games/redalert/" +FILES_${PN}-dbg += "${datadir}/games/redalert/.debug" diff --git a/recipes/cnc/redalert-demo-gamedata.bb b/recipes/cnc/redalert-demo-gamedata.bb new file mode 100644 index 0000000000..1aa5722647 --- /dev/null +++ b/recipes/cnc/redalert-demo-gamedata.bb @@ -0,0 +1,15 @@ +DESCRIPTION = "Red Alert Demo game data" +LICENSE = "shareware" + +SRC_URI = "ftp://ftp.westwood.com/pub/redalert/previews/demo/ra95demo.zip" + +do_install() { + install -d ${D}/${datadir}/games/redalert/data/mix + cp ${WORKDIR}/ra95demo/INSTALL/MAIN.MIX ${D}/${datadir}/games/redalert/data/mix/main.mix + cp ${WORKDIR}/ra95demo/INSTALL/REDALERT.MIX ${D}/${datadir}/games/redalert/data/mix/redalert.mix +} + + +PACKAGE_ARCH = "all" +FILES_${PN} += "${datadir}/games/redalert/" + -- cgit 1.2.3-korg