From d0354a03b5d6f91d2d18010335efc9e1a09ff015 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 21 Sep 2008 10:37:34 +0000 Subject: openredalert: game engine for red alert 1 redalert-demo-gamedata: game data for the demo --- packages/cnc/.mtn2git_empty | 0 packages/cnc/openredalert/.mtn2git_empty | 0 packages/cnc/openredalert/openredalert-launcher | 3 +++ packages/cnc/openredalert_r438.bb | 28 +++++++++++++++++++++++++ packages/cnc/redalert-demo-gamedata.bb | 15 +++++++++++++ 5 files changed, 46 insertions(+) create mode 100644 packages/cnc/.mtn2git_empty create mode 100644 packages/cnc/openredalert/.mtn2git_empty create mode 100755 packages/cnc/openredalert/openredalert-launcher create mode 100644 packages/cnc/openredalert_r438.bb create mode 100644 packages/cnc/redalert-demo-gamedata.bb (limited to 'packages') diff --git a/packages/cnc/.mtn2git_empty b/packages/cnc/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/cnc/openredalert/.mtn2git_empty b/packages/cnc/openredalert/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 diff --git a/packages/cnc/openredalert/openredalert-launcher b/packages/cnc/openredalert/openredalert-launcher new file mode 100755 index 0000000000..4e5dad4bb6 --- /dev/null +++ b/packages/cnc/openredalert/openredalert-launcher @@ -0,0 +1,3 @@ +#!/bin/sh + +( cd /usr/share/games/redalert && ./openredalert ) diff --git a/packages/cnc/openredalert_r438.bb b/packages/cnc/openredalert_r438.bb new file mode 100644 index 0000000000..4da245614a --- /dev/null +++ b/packages/cnc/openredalert_r438.bb @@ -0,0 +1,28 @@ +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://openredalert-launcher" + +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/packages/cnc/redalert-demo-gamedata.bb b/packages/cnc/redalert-demo-gamedata.bb new file mode 100644 index 0000000000..1aa5722647 --- /dev/null +++ b/packages/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 v1.2.3