From 13d761486a2d119894466d9821348cd87e1e53d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Pouiller?= Date: Tue, 10 Feb 2015 21:01:13 +0100 Subject: [PATCH] package/nvidia-driver: Add gl.pc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In order to compile xserver, libgl provider have to provide gl.pc file. Signed-off-by: Jérôme Pouiller Signed-off-by: Yann E. MORIN Signed-off-by: Thomas Petazzoni --- package/nvidia-driver/gl.pc | 11 +++++++++++ package/nvidia-driver/nvidia-driver.mk | 1 + 2 files changed, 12 insertions(+) create mode 100644 package/nvidia-driver/gl.pc diff --git a/package/nvidia-driver/gl.pc b/package/nvidia-driver/gl.pc new file mode 100644 index 0000000000..d822763f57 --- /dev/null +++ b/package/nvidia-driver/gl.pc @@ -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 diff --git a/package/nvidia-driver/nvidia-driver.mk b/package/nvidia-driver/nvidia-driver.mk index f703fabd0b..2a35f9bd93 100644 --- a/package/nvidia-driver/nvidia-driver.mk +++ b/package/nvidia-driver/nvidia-driver.mk @@ -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 -- 2.30.2