From b22b97076a915a7005f970dcbed7514282859d08 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Sun, 31 May 2009 22:20:17 +0100 Subject: qemugl: Include headers and a pkgconfig file (from mesa) and add libxfixes to DEPENDS Signed-off-by: Richard Purdie --- meta/packages/mesa/qemugl/gl.pc | 12 ++++++++++++ meta/packages/mesa/qemugl/headers.tgz | Bin 0 -> 134048 bytes meta/packages/mesa/qemugl_git.bb | 20 ++++++++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 meta/packages/mesa/qemugl/gl.pc create mode 100644 meta/packages/mesa/qemugl/headers.tgz (limited to 'meta/packages/mesa') diff --git a/meta/packages/mesa/qemugl/gl.pc b/meta/packages/mesa/qemugl/gl.pc new file mode 100644 index 000000000..18cdb4e66 --- /dev/null +++ b/meta/packages/mesa/qemugl/gl.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=/usr/lib +includedir=/usr/include + +Name: gl +Description: QEMU OpenGL library +Requires.private: x11 xext xfixes +Version: 7.3.0 +Libs: -L${libdir} -lGL +Libs.private: -lm -lpthread -ldl +Cflags: -I${includedir} diff --git a/meta/packages/mesa/qemugl/headers.tgz b/meta/packages/mesa/qemugl/headers.tgz new file mode 100644 index 000000000..79e496828 Binary files /dev/null and b/meta/packages/mesa/qemugl/headers.tgz differ diff --git a/meta/packages/mesa/qemugl_git.bb b/meta/packages/mesa/qemugl_git.bb index 1a6f71060..272f47b89 100644 --- a/meta/packages/mesa/qemugl_git.bb +++ b/meta/packages/mesa/qemugl_git.bb @@ -3,11 +3,13 @@ HOMEPAGE = "http://savannah.nongnu.org/projects/qemugl" SECTION = "x11/drivers" LICENSE = "GPL" -DEPENDS = "virtual/libx11 xproto glproto" +DEPENDS = "virtual/libx11 xproto glproto libxfixes" COMPATIBLE_HOST = '(x86_64|i.86.*)-(linux|freebsd.*)' -SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git" +SRC_URI = "git://git.o-hand.com/qemugl.git;protocol=git \ + file://headers.tgz \ + file://gl.pc" S = "${WORKDIR}/git" PV = "0.0+git${SRCREV}" @@ -24,4 +26,18 @@ do_install () { install -d ${D}${libdir} install -m 0755 ${S}/libGL.so ${D}${libdir}/ ln -s libGL.so ${D}${libdir}/libGL.so.1 + install -d ${D}{includedir}/GL/ + cp -pPR ${WORKDIR}/headers/* ${D}{includedir}/GL/ + install -d ${D}${libdir}/pkgconfig/ + cp ${WORKDIR}/gl.pc ${D}${libdir}/pkgconfig/ +} + +do_stage () { + install -d ${STAGING_LIBDIR}/ + install -m 0755 ${S}/libGL.so ${STAGING_LIBDIR}/ + ln -s libGL.so ${STAGING_LIBDIR}/libGL.so.1 + install -d ${STAGING_INCDIR}/GL/ + cp -pPR ${WORKDIR}/headers/* ${STAGING_INCDIR}/GL/ + install -d ${STAGING_LIBDIR}/pkgconfig/ + cp ${WORKDIR}/gl.pc ${STAGING_LIBDIR}/pkgconfig/ } -- cgit v1.2.3