summaryrefslogtreecommitdiff
path: root/scummvm/scummvm_0.6.0.oe
blob: bfa60de2d278a6c48fce3adc3eb9b285da2da2e9 (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
DESCRIPTION = "Virtual Machine for LucasArts Adventures"
SECTION = "base"
PRIORITY = "optional"
DEPENDS = "virtual/libc libsdl-qpe libmad libvorbis libogg"

SRC_URI = "${SOURCEFORGE_MIRROR}/scummvm/scummvm-${PV}.tar.bz2"

inherit autotools 

EXTRA_OECONF = "--backend=sdl \
		--with-sdl-prefix=${STAGING_BINDIR}/.. \
		--disable-alsa \
		--with-ogg-prefix=${STAGING_LIBDIR}/.. \
		--with-vorbis-prefix=${STAGING_LIBDIR}/.. \
		--disable-mpeg2 \
		--with-mad-prefix=${STAGING_BINDIR}/.."

do_configure() {
	./configure ${EXTRA_OECONF}
}

do_compile() {
	oe_runmake CC="${CC}" CXX="${CXX}" CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
                   DEFINES="-DUNIX -DSCUMM_NEED_ALIGNMENT -DQTOPIA"
}

do_install() {
	install -d ${D}/${bindir}
	install -m 0755 scummvm ${D}/${bindir}/scummvm
}