Skip to contentSkip to conversation

gpu-viv-bin-mx6q: add pkgconfig files for EGL and OpenGLESv2

PATCH New Fatih Aşıcı 2 participants 3 messages Sep 17, 2013 – Sep 18, 2013 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL and OpenGLESv2

---
 .../gpu-viv-bin-mx6q-add-pkgconfig-files.patch     |   30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +30 -0
new file mode 100644
index 0000000..8ed4ffe
@@ -0,0 +1,30 @@
+Add .pc files for the OpenGLESv2 and EGL libraries
+
+Signed-off-by: Fatih A??c? <[email protected]>
+
+--- /dev/null
++++ b/usr/lib/pkgconfig/egl.pc
+@@ -0,0 +1,10 @@
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: egl
++Description: Freescale gpu-viv-bin-mx6q implementation of EGL
++Version: 1.0
++Libs: -L${libdir} -lEGL
++Cflags: -I${includedir}/ -DEGL_API_FB=1
+--- /dev/null
++++ b/usr/lib/pkgconfig/glesv2.pc
+@@ -0,0 +1,10 @@
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: glesv2
++Description: Freescale gpu-viv-bin-mx6q implementation of OpenGL ESv2
++Version: 2.0
++Libs: -L${libdir} -lGAL -lEGL -lGLESv2
++Cflags: -I${includedir}/ -DEGL_API_FB=1
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL and OpenGLESv2

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch

Quoted 11 lines · Fatih A??c?
---
  .../gpu-viv-bin-mx6q-add-pkgconfig-files.patch     |   30 ++++++++++++++++++++
  1 file changed, 30 insertions(+)

create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +0 -0
new file mode 100644
index 0000000..8ed4ffe

Personally, I would prefer to have these as plain files in the package
directory and copy them to staging in the INSTALL_STAGING_CMDS. But I guess that's a matter of taste.

If you do keep it as a patch, make sure it gets a number.

Quoted 7 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +6 -0
@@ -0,0 +1,30 @@
+Add .pc files for the OpenGLESv2 and EGL libraries
+
+Signed-off-by: Fatih A??c? <[email protected]>
+
+--- /dev/null
++++ b/usr/lib/pkgconfig/egl.pc

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch line 16

Quoted 10 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +10 -0
+@@ -0,0 +1,10 @@
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: egl
++Description: Freescale gpu-viv-bin-mx6q implementation of EGL
++Version: 1.0
++Libs: -L${libdir} -lEGL

I haven't double-checked, but I think that -lEGL requires -lGAL as well.

Quoted 5 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +4 -0
++Cflags: -I${includedir}/ -DEGL_API_FB=1
+--- /dev/null
++++ b/usr/lib/pkgconfig/glesv2.pc
+@@ -0,0 +1,10 @@

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch line 30

Quoted 10 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +10 -0
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: glesv2
++Description: Freescale gpu-viv-bin-mx6q implementation of OpenGL ESv2
++Version: 2.0
++Libs: -L${libdir} -lGAL -lEGL -lGLESv2
++Cflags: -I${includedir}/ -DEGL_API_FB=1

What about OpenVG?

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#2 lore raw

PATCH 1/1 gpu-viv-bin-mx6q: add pkgconfig files for EGL and OpenGLESv2

Quoted 7 lines · Arnout Vandecappelle
Quoted 6 lines · Fatih A??c?
---
  .../gpu-viv-bin-mx6q-add-pkgconfig-files.patch     |   30 ++++++++++++++++++++
  1 file changed, 30 insertions(+)

create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch

Quoted 10 lines

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch

Quoted 5 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +0 -0
new file mode 100644
index 0000000..8ed4ffe

Personally, I would prefer to have these as plain files in the package
directory and copy them to staging in the INSTALL_STAGING_CMDS. But I guess that's a matter of taste.

OK. It will be easier with plain files.

Quoted 13 lines

If you do keep it as a patch, make sure it gets a number.

Quoted 11 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +10 -0
@@ -0,0 +1,30 @@
+Add .pc files for the OpenGLESv2 and EGL libraries
+
+Signed-off-by: Fatih A??c? <[email protected]>
+
+--- /dev/null
++++ b/usr/lib/pkgconfig/egl.pc
+@@ -0,0 +1,10 @@
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
Quoted 8 lines

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch line 16

Quoted 6 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +6 -0
++includedir=${prefix}/include
++
++Name: egl
++Description: Freescale gpu-viv-bin-mx6q implementation of EGL
++Version: 1.0
++Libs: -L${libdir} -lEGL

I haven't double-checked, but I think that -lEGL requires -lGAL as well.

You are right.

Quoted 16 lines
Quoted 5 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +4 -0
++Cflags: -I${includedir}/ -DEGL_API_FB=1
+--- /dev/null
++++ b/usr/lib/pkgconfig/glesv2.pc
+@@ -0,0 +1,10 @@

package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch line 30

Quoted 10 lines
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q-add-pkgconfig-files.patch new file +10 -0
++prefix=/usr
++exec_prefix=${prefix}
++libdir=${exec_prefix}/lib
++includedir=${prefix}/include
++
++Name: glesv2
++Description: Freescale gpu-viv-bin-mx6q implementation of OpenGL ESv2
++Version: 2.0
++Libs: -L${libdir} -lGAL -lEGL -lGLESv2
++Cflags: -I${includedir}/ -DEGL_API_FB=1
Quoted 1 line

What about OpenVG?

I will add vg.pc within the next version of patch.

Quoted 2 lines

Regards,
Arnout

Thanks,
Fatih