Skip to contentSkip to conversation

package/nvidia-driver: install an egl.pc

PATCH New Yann E. MORIN 3 participants 3 messages Aug 29, 2017 – Sep 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/nvidia-driver: install an egl.pc

A lot of packages expect an egl.pc to decide that EGL is available. So, provide one.

As suggested by Alexandre, use the one from nvidia-tegra23 as template.

Cc Alexandre Maumen? <[email protected]>
Cc Arnout Vandecappelle <[email protected]>

---
Note: ideally, we should also provide a glesv2.pc, and possibly a wayland-egl.pc as well. That can be folowup patches.

---
 package/nvidia-driver/egl.pc           | 10 ++++++++++
 package/nvidia-driver/nvidia-driver.mk |  1 +
 2 files changed, 11 insertions(+)
 create mode 100644 package/nvidia-driver/egl.pc
package/nvidia-driver/egl.pc new file +10 -0
new file mode 100644
index 0000000000..a5aeace63c
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: egl
+Description: Nvidia OpenGL library
+Version: 1
+Cflags: -I${includedir}
+Libs: -L${libdir} -lEGL
package/nvidia-driver/nvidia-driver.mk +1 -0
index d8dedd9e3b..6746134a52 100644
@@ -78,6 +78,7 @@ define NVIDIA_DRIVER_INSTALL_GL_DEV
 	$(SED) 's:__LIBGL_PATH__:/usr/lib:' $(STAGING_DIR)/usr/lib/libGL.la
 	$(SED) 's:-L[^[:space:]]\+::' $(STAGING_DIR)/usr/lib/libGL.la
 	$(INSTALL) -D -m 0644 package/nvidia-driver/gl.pc $(STAGING_DIR)/usr/lib/pkgconfig/gl.pc
+	$(INSTALL) -D -m 0644 package/nvidia-driver/egl.pc $(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
 endef
 
 # Those libraries are 'private' libraries requiring an agreement with
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 package/nvidia-driver: install an egl.pc

Hello,

Quoted 10 lines · Yann E. MORIN

A lot of packages expect an egl.pc to decide that EGL is available. So, provide one.

As suggested by Alexandre, use the one from nvidia-tegra23 as template.

Cc Alexandre Maumen? <[email protected]>
Cc Arnout Vandecappelle <[email protected]>
Quoted 8 lines

---
Note: ideally, we should also provide a glesv2.pc, and possibly a wayland-egl.pc as well. That can be folowup patches.

---
 package/nvidia-driver/egl.pc           | 10 ++++++++++
 package/nvidia-driver/nvidia-driver.mk |  1 +
 2 files changed, 11 insertions(+)
 create mode 100644 package/nvidia-driver/egl.pc

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 package/nvidia-driver: install an egl.pc

In reply to Yann E. MORIN
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

A lot of packages expect an egl.pc to decide that EGL is available. So, provide one.

As suggested by Alexandre, use the one from nvidia-tegra23 as template.

Quoted 8 lines
Cc Alexandre Maumen? <[email protected]>
Cc Arnout Vandecappelle <[email protected]>

---
Note: ideally, we should also provide a glesv2.pc, and possibly a wayland-egl.pc as well. That can be folowup patches.

Committed to 2017.02.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard