* [Buildroot] [PATCH v2] gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
@ 2013-09-18 11:03 Fatih Aşıcı
2013-09-18 11:20 ` Jérôme Pouiller
0 siblings, 1 reply; 3+ messages in thread
From: Fatih Aşıcı @ 2013-09-18 11:03 UTC (permalink / raw)
To: buildroot
Signed-off-by: Fatih A??c? <fatih.asici@gmail.com>
---
Changes v1 -> v2:
- Add .pc files to package dir instead of patching (suggested by
Arnout Vandecappelle)
- EGL library needs requires -lGAL, too (suggested by Arnout
Vandecappelle)
- Added .pc file for OpenVG (suggested by Arnout Vandecappelle)
---
package/freescale-imx/gpu-viv-bin-mx6q/egl.pc | 10 ++++++++++
package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc | 10 ++++++++++
package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk | 5 +++++
package/freescale-imx/gpu-viv-bin-mx6q/vg.pc | 10 ++++++++++
4 files changed, 35 insertions(+)
create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/egl.pc
create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc
create mode 100644 package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/egl.pc b/package/freescale-imx/gpu-viv-bin-mx6q/egl.pc
new file mode 100644
index 0000000..c984247
--- /dev/null
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/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} -lGAL -lEGL
+Cflags: -I${includedir}/ -DEGL_API_FB=1
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc b/package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc
new file mode 100644
index 0000000..7cfb5e7
--- /dev/null
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/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
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
index 0338e13..9883d82 100644
--- a/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.mk
@@ -51,6 +51,11 @@ endef
define GPU_VIV_BIN_MX6Q_INSTALL_STAGING_CMDS
cp -r $(@D)/usr/* $(STAGING_DIR)/usr
+ for lib in egl glesv2 vg; do \
+ $(INSTALL) -m 0644 -D \
+ package/freescale-imx/gpu-viv-bin-mx6q/$${lib}.pc \
+ $(STAGING_DIR)/usr/lib/pkgconfig/$${lib}.pc; \
+ done
endef
ifeq ($(BR2_PACKAGE_GPU_VIV_BIN_MX6Q_EXAMPLES),y)
diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc b/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
new file mode 100644
index 0000000..fb14005
--- /dev/null
+++ b/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: vg
+Description: Freescale gpu-viv-bin-mx6q implementation of OpenVG
+Version: 1.1
+Libs: -L${libdir} -lGAL -lEGL -lOpenVG
+Cflags: -I${includedir}/ -DEGL_API_FB=1
--
1.7.10.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v2] gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
2013-09-18 11:03 [Buildroot] [PATCH v2] gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG Fatih Aşıcı
@ 2013-09-18 11:20 ` Jérôme Pouiller
2013-09-18 11:31 ` Fatih Aşıcı
0 siblings, 1 reply; 3+ messages in thread
From: Jérôme Pouiller @ 2013-09-18 11:20 UTC (permalink / raw)
To: buildroot
Hello Fatih,
On 2013-09-18 13:03, Fatih A??c? wrote:
[...]
> diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/egl.pc
> b/package/freescale-imx/gpu-viv-bin-mx6q/egl.pc
> new file mode 100644
> index 0000000..c984247
> --- /dev/null
> +++ b/package/freescale-imx/gpu-viv-bin-mx6q/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} -lGAL -lEGL
> +Cflags: -I${includedir}/ -DEGL_API_FB=1
IFAIK, -DEGL_API_FB=1 must be used only if GPU_VIV_BIN_MX6Q_LIB_TARGET
== fb.
> diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc
> b/package/freescale-imx/gpu-viv-bin-mx6q/glesv2.pc
[...]
> +Cflags: -I${includedir}/ -DEGL_API_FB=1
Ditto.
[...]
> diff --git a/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
> b/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
> new file mode 100644
> index 0000000..fb14005
> --- /dev/null
> +++ b/package/freescale-imx/gpu-viv-bin-mx6q/vg.pc
[...]
> +Cflags: -I${includedir}/ -DEGL_API_FB=1
Ditto.
--
J?r?me Pouiller, Sysmic
Embedded Linux specialist
http://www.sysmic.fr
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v2] gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG
2013-09-18 11:20 ` Jérôme Pouiller
@ 2013-09-18 11:31 ` Fatih Aşıcı
0 siblings, 0 replies; 3+ messages in thread
From: Fatih Aşıcı @ 2013-09-18 11:31 UTC (permalink / raw)
To: buildroot
On Wed, 2013-09-18 at 13:20 +0200, J?r?me Pouiller wrote:
> > +Name: egl
> > +Description: Freescale gpu-viv-bin-mx6q implementation of EGL
> > +Version: 1.0
> > +Libs: -L${libdir} -lGAL -lEGL
> > +Cflags: -I${includedir}/ -DEGL_API_FB=1
> IFAIK, -DEGL_API_FB=1 must be used only if GPU_VIV_BIN_MX6Q_LIB_TARGET
> == fb.
I did not know this option. I will send a new patch sed'ing
installed .pc files.
Thanks,
Fatih
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-18 11:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 11:03 [Buildroot] [PATCH v2] gpu-viv-bin-mx6q: add pkgconfig files for EGL, OpenGLESv2 and OpenVG Fatih Aşıcı
2013-09-18 11:20 ` Jérôme Pouiller
2013-09-18 11:31 ` Fatih Aşıcı
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox