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).
This commit is contained in:
Tomas Frydrych 2012-06-14 22:47:59 +01:00
parent 2bd08428ce
commit fac94bf7de
4 changed files with 64 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,8 @@
CONFLICTS = "vc-graphics"
VCDIR = "hardfp/opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View File

@ -0,0 +1,8 @@
CONFLICTS = "vc-graphics-hardfp"
VCDIR = "opt/vc"
require vc-graphics.inc
PR = "${INCPR}.0"

View File

@ -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"