From: Jérôme Pouiller Date: Tue, 10 Feb 2015 20:01:13 +0000 (+0100) Subject: package/nvidia-driver: Add gl.pc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13d761486a2d119894466d9821348cd87e1e53d9;p=buildroot.git package/nvidia-driver: Add gl.pc 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 --- 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