package/nvidia-driver: Add gl.pc
authorJérôme Pouiller <jezz@sysmic.org>
Tue, 10 Feb 2015 20:01:13 +0000 (21:01 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Feb 2015 17:39:54 +0000 (18:39 +0100)
In order to compile xserver, libgl provider have to provide gl.pc file.

Signed-off-by: Jérôme Pouiller <jezz@sysmic.org>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/nvidia-driver/gl.pc [new file with mode: 0644]
package/nvidia-driver/nvidia-driver.mk

diff --git a/package/nvidia-driver/gl.pc b/package/nvidia-driver/gl.pc
new file mode 100644 (file)
index 0000000..d822763
--- /dev/null
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: gl
+Description: Nvidia OpenGL library
+Version: 10.4.2
+Libs: -L${libdir} -lGL -lm -lXext -lX11 -ldl
+Cflags: -I${includedir}  -DMESA_EGL_NO_X11_HEADERS
+glx_tls: no
index f703fabd0b59543566deef3e21495e21dba95130..2a35f9bd93c75e44501e826fff2f1df104ee30df 100644 (file)
@@ -102,6 +102,7 @@ define NVIDIA_DRIVER_INSTALL_STAGING_CMDS
        $(SED) 's:__GENERATED_BY__:Buildroot:' $(STAGING_DIR)/usr/lib/libGL.la
        $(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
 endef
 
 # For target, install libraries and X.org modules