From fac94bf7de6ee76b8ef1f74bc1dba565eeaabf2a Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Thu, 14 Jun 2012 22:47:59 +0100 Subject: [PATCH] vc-graphics: package firmware for VC graphics This package adds a egl.pc file for use with libEGL (it is necessary to specify a custom include paths for the compiler due to brokenness in the firmware header files). --- recipes-bcm/vc-graphics/files/egl.pc | 10 +++++ recipes-bcm/vc-graphics/vc-graphics-hardfp.bb | 8 ++++ recipes-bcm/vc-graphics/vc-graphics.bb | 8 ++++ recipes-bcm/vc-graphics/vc-graphics.inc | 38 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 recipes-bcm/vc-graphics/files/egl.pc create mode 100644 recipes-bcm/vc-graphics/vc-graphics-hardfp.bb create mode 100755 recipes-bcm/vc-graphics/vc-graphics.bb create mode 100644 recipes-bcm/vc-graphics/vc-graphics.inc diff --git a/recipes-bcm/vc-graphics/files/egl.pc b/recipes-bcm/vc-graphics/files/egl.pc new file mode 100644 index 0000000..c314202 --- /dev/null +++ b/recipes-bcm/vc-graphics/files/egl.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include + +Name: egl +Description: egl for RaspberryPI +Version: 0.0 +Libs: -L${libdir} -lEGL -lGLESv2 +Cflags: -I${includedir}/vc -I${includedir}/interface -I${includedir}/interface/vcos -I${includedir}/interface/vcos/pthreads diff --git a/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb new file mode 100644 index 0000000..e96c291 --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics-hardfp.bb @@ -0,0 +1,8 @@ + +CONFLICTS = "vc-graphics" + +VCDIR = "hardfp/opt/vc" +require vc-graphics.inc + +PR = "${INCPR}.0" + diff --git a/recipes-bcm/vc-graphics/vc-graphics.bb b/recipes-bcm/vc-graphics/vc-graphics.bb new file mode 100755 index 0000000..e78a80b --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.bb @@ -0,0 +1,8 @@ + +CONFLICTS = "vc-graphics-hardfp" + +VCDIR = "opt/vc" +require vc-graphics.inc + +PR = "${INCPR}.0" + diff --git a/recipes-bcm/vc-graphics/vc-graphics.inc b/recipes-bcm/vc-graphics/vc-graphics.inc new file mode 100644 index 0000000..dcb0984 --- /dev/null +++ b/recipes-bcm/vc-graphics/vc-graphics.inc @@ -0,0 +1,38 @@ +DESCRIPTION = "Graphics libraries for BCM2835." +LICENSE = "proprietary-binary" + +LIC_FILES_CHKSUM = "file://LICENCE;md5=86e53f5f5909ee66900418028de11780" + +PROVIDES += "virtual/egl" + +SRCREV = "1178c4db57e8676f331fdacfb37ff1662430ea5f" + +SRC_URI = "git://github.com/raspberrypi/firmware.git;protocol=git;branch=master\ + file://egl.pc" + +S = "${WORKDIR}/git/${VCDIR}" + +INCPR = "r0" + +inherit pkgconfig + +do_install () { + install -d ${D}${bindir} + cp -R bin/* ${D}${bindir} + + install -d ${D}${sbindir} + cp -R sbin/* ${D}${sbindir} + + install -d ${D}${libdir} + cp -R lib/* ${D}${libdir} + + install -d ${D}${includedir} + cp -R include/* ${D}${includedir} + + install -d ${D}${libdir}/pkgconfig + install -m 0644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig/ +} + + +FILES_${PN} = "${bindir}/* ${sbindir}/* ${libdir}/lib*.so*" +FILES_${PN}-dev += "${libdir}/pkgconfig"