LICENSE = "GPL"
DEPENDS = "zlib"
PV = "0.10.6+git${SRCREV}"
-PR = "r2"
+PR = "r3"
FILESPATH = "${FILE_DIRNAME}/qemu-${PV}/:${FILE_DIRNAME}/qemu-git/"
inherit autotools
+# For our gl powered QEMU you need libGL and SDL headers
+do_configure_prepend_virtclass-native() {
+ libgl='no'
+ libsdl='no'
+
+ test -e /usr/lib/libGL.so -a -e /usr/lib/libGLU.so && libgl='yes'
+ test -e /usr/lib64/libGL.so -a -e /usr/lib64/libGLU.so && libgl='yes'
+
+ test -e /usr/lib/pkgconfig/sdl.pc -o -e /usr/lib64/pkgconfig/sdl.pc && libsdl='yes'
+
+ if [ "$libsdl" != 'yes' -o "$libgl" != 'yes' ]; then
+ echo "You need libGL.so and libGLU.so to exist in your library path and the development headers for SDL installed to build qemu-native.
+ Ubuntu package names are: libgl1-mesa-dev, libglu1-mesa-dev and libsdl1.2-dev"
+ exit 1;
+ fi
+}
+
do_configure() {
${S}/configure --prefix=${prefix} ${EXTRA_OECONF}
chmod a+x ${S}/target-i386/beginend_funcs.sh