aboutsummaryrefslogtreecommitdiff
path: root/recipes/duke3d/duke3d_svn.bb
blob: f1d5ea4142394e030ee1db1c464cfb03c70e5ab3 (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
DESCRIPTION = "Duke Nukem 3D game engine"
LICENSE = "GPLv2"
DEPENDS = "virtual/libsdl libsdl-mixer"

SRCREV = "187"
PV = "0.0+svnr${SRCPV}"

SRC_URI = "svn://svn.icculus.org/duke3d/;module=trunk \
           file://duke3d.desktop"

S = "${WORKDIR}/trunk/source"

PARALLEL_MAKE = ""

TARGET_CC_ARCH += "${LDFLAGS}"

do_compile() {
	for i in $(find ${S} -name 'Makefile') ; do
		sed -i s:\ gcc:\ '${CC}': $i
	done
	make
}

do_install() {
	install -d ${D}${bindir}
	install -m 0755 ${S}/duke3d ${D}${bindir}/
	install -d ${D}${datadir}/applications
	install -m 0644 ${WORKDIR}/duke3d.desktop ${D}${datadir}/applications/
}