[meta-fsl-arm,v2,4/6] amd-gpu-x11-bin: Add pkgconfig files for EGL and OpenGL ES 2

Submitted by Otavio Salvador on March 7, 2014, 2:52 p.m.

Details

Message ID 1394203965-9775-4-git-send-email-otavio@ossystems.com.br
State Accepted, archived
Delegated to: Otavio Salvador
Headers show

Commit Message

Otavio Salvador March 7, 2014, 2:52 p.m.
The pkgconfig files are need for some applications which use it to
check for library avaiability. The culprit which triggered it was the
addition of glmark2 into the test image, thus causing a build failure
in our autobuilder.

The build has been tested in X11 and Framebuffer backends.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---

Changes in v2:
- new patch

 recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc |  8 ++++++++
 recipes-graphics/amd-gpu-x11-bin/files/egl.pc     | 11 +++++++++++
 recipes-graphics/amd-gpu-x11-bin/files/glesv2.pc  | 11 +++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 recipes-graphics/amd-gpu-x11-bin/files/egl.pc
 create mode 100644 recipes-graphics/amd-gpu-x11-bin/files/glesv2.pc

Patch hide | download patch | download mbox

diff --git a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
index 3ff5d4b..02a4f21 100644
--- a/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
+++ b/recipes-graphics/amd-gpu-x11-bin/amd-gpu-mx51.inc
@@ -1,4 +1,5 @@ 
 # Copyright (C) 2011, 2012, 2013 Freescale
+# Copyright (C) 2011-2014 O.S. Systems Software LTDA.
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 LICENSE = "Proprietary"
@@ -10,6 +11,8 @@  LIC_FILES_CHKSUM = "file://usr/include/VG/openvg.h;endline=30;md5=b0109611dd7696
 PROVIDES = "virtual/egl virtual/libgles1 virtual/libgles2"
 
 SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \
+           file://egl.pc \
+           file://glesv2.pc \
            file://fix-linux-build-check.patch"
 
 inherit fsl-eula-unpack
@@ -43,6 +46,11 @@  do_install () {
     # FIXME: Remove unkown files
     rm -r ${D}${libdir}/libcsi.a \
           ${D}${libdir}/libres.a
+
+    # FIXME: Add pkgconfig files
+    install -d ${D}${libdir}/pkgconfig
+    install -m 644 ${WORKDIR}/egl.pc ${D}${libdir}/pkgconfig
+    install -m 644 ${WORKDIR}/glesv2.pc ${D}${libdir}/pkgconfig
 }
 
 PACKAGES =+ "libgsl-fsl-mx51 libgsl-fsl-mx51-dev libgsl-fsl-mx51-dbg \
diff --git a/recipes-graphics/amd-gpu-x11-bin/files/egl.pc b/recipes-graphics/amd-gpu-x11-bin/files/egl.pc
new file mode 100644
index 0000000..3d2ab5d
--- /dev/null
+++ b/recipes-graphics/amd-gpu-x11-bin/files/egl.pc
@@ -0,0 +1,11 @@ 
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: egl
+Description: AMD EGL library
+Requires.private:
+Version: 8.0
+Libs: -L${libdir} -lEGL
+Cflags: -I${includedir}
diff --git a/recipes-graphics/amd-gpu-x11-bin/files/glesv2.pc b/recipes-graphics/amd-gpu-x11-bin/files/glesv2.pc
new file mode 100644
index 0000000..62e1cb6
--- /dev/null
+++ b/recipes-graphics/amd-gpu-x11-bin/files/glesv2.pc
@@ -0,0 +1,11 @@ 
+prefix=/usr
+exec_prefix=${prefix}
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: glesv2
+Description: AMD OpenGL ES 2.0 library
+Requires.private:
+Version: 8.0
+Libs: -L${libdir} -lGLESv2 -lEGL
+Cflags: -I${includedir}