mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-05-07 16:59:16 +00:00
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:
@@ -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
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
CONFLICTS = "vc-graphics"
|
||||||
|
|
||||||
|
VCDIR = "hardfp/opt/vc"
|
||||||
|
require vc-graphics.inc
|
||||||
|
|
||||||
|
PR = "${INCPR}.0"
|
||||||
|
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
CONFLICTS = "vc-graphics-hardfp"
|
||||||
|
|
||||||
|
VCDIR = "opt/vc"
|
||||||
|
require vc-graphics.inc
|
||||||
|
|
||||||
|
PR = "${INCPR}.0"
|
||||||
|
|
||||||
@@ -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"
|
||||||
Reference in New Issue
Block a user