aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/cnc/openredalert_r438.bb
blob: 2d1b93146ddd8a8e9f147901533f4cb473cbbd13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;subdir=${BPN}-${PV} \
           file://gcc43-fix.patch \
           file://openredalert-launcher"

PR = "r1"

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 ${WORKDIR}/openredalert-launcher ${D}/${bindir}	
}

FILES_${PN} += "${datadir}/games/redalert/"
FILES_${PN}-dbg += "${datadir}/games/redalert/.debug"

SRC_URI[md5sum] = "12dc7a8042c023bc77b7830946fc8492"
SRC_URI[sha256sum] = "68058b6ffd9a286111c1860ca6d53af0d98d3f0c2a53875efd72ab381a3f9d6d"