summaryrefslogtreecommitdiff
path: root/packages/cnc/openredalert_r438.bb
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-09-21 10:37:34 +0000
committerKoen Kooi <koen@openembedded.org>2008-09-21 10:37:34 +0000
commitd0354a03b5d6f91d2d18010335efc9e1a09ff015 (patch)
treea207cc6edf43cdff5b4d5ae7409e846986e62b14 /packages/cnc/openredalert_r438.bb
parent9d0c93e889f7cc55ada92e78b83056c8757b479f (diff)
openredalert: game engine for red alert 1
redalert-demo-gamedata: game data for the demo
Diffstat (limited to 'packages/cnc/openredalert_r438.bb')
-rw-r--r--packages/cnc/openredalert_r438.bb28
1 files changed, 28 insertions, 0 deletions
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"