summaryrefslogtreecommitdiff
path: root/recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-12-01 17:51:55 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-11 12:03:36 +0100
commit9af5385bcc1181990ef08c31b330ce46693d8fda (patch)
treed43c092715b51dacc3ab429bb690288073b6580f /recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch
parent683839964d64e2b3b60bd5f3c791bd7f691d6f06 (diff)
mesa_%.bbappend: port patch to newer upstream mesa version
Moving from patching the "*.pc" files to patching there "*.pc.in" files should hopefully make the patch more independent of the mesa version. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch')
-rw-r--r--recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch b/recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch
new file mode 100644
index 0000000..a565ef3
--- /dev/null
+++ b/recipes-graphics/mesa/mesa/apalis-tk1/tegra-path-add.patch
@@ -0,0 +1,45 @@
+diff -Naur mesa-12.0.1.orig/src/egl/main/egl.pc.in mesa-12.0.1/src/egl/main/egl.pc.in
+--- mesa-12.0.1.orig/src/egl/main/egl.pc.in 2016-01-18 08:39:25.000000000 +0100
++++ mesa-12.0.1/src/egl/main/egl.pc.in 2016-11-27 20:01:40.284075822 +0100
+@@ -7,6 +7,6 @@
+ Description: Mesa EGL library
+ Requires.private: @GL_PC_REQ_PRIV@
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -lEGL
++Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lEGL
+ Libs.private: @GL_PC_LIB_PRIV@
+ Cflags: -I${includedir} @GL_PC_CFLAGS@
+diff -Naur mesa-12.0.1.orig/src/mapi/es1api/glesv1_cm.pc.in mesa-12.0.1/src/mapi/es1api/glesv1_cm.pc.in
+--- mesa-12.0.1.orig/src/mapi/es1api/glesv1_cm.pc.in 2016-01-18 08:39:26.000000000 +0100
++++ mesa-12.0.1/src/mapi/es1api/glesv1_cm.pc.in 2016-11-27 20:04:44.513960821 +0100
+@@ -7,6 +7,6 @@
+ Description: Mesa OpenGL ES 1.1 CM library
+ Requires.private:
+ Version: @VERSION@
+-Libs: -L${libdir} -lGLESv1_CM
++Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lGLESv1_CM
+ Libs.private: @GLESv1_CM_PC_LIB_PRIV@
+ Cflags: -I${includedir}
+diff -Naur mesa-12.0.1.orig/src/mapi/es2api/glesv2.pc.in mesa-12.0.1/src/mapi/es2api/glesv2.pc.in
+--- mesa-12.0.1.orig/src/mapi/es2api/glesv2.pc.in 2016-01-18 08:39:26.000000000 +0100
++++ mesa-12.0.1/src/mapi/es2api/glesv2.pc.in 2016-11-27 20:04:46.913972352 +0100
+@@ -7,6 +7,6 @@
+ Description: Mesa OpenGL ES 2.0 library
+ Requires.private:
+ Version: @VERSION@
+-Libs: -L${libdir} -lGLESv2
++Libs: -L${libdir}/arm-linux-gnueabihf/tegra-egl -L${libdir} -lGLESv2
+ Libs.private: @GLESv2_PC_LIB_PRIV@
+ Cflags: -I${includedir}
+diff -Naur mesa-12.0.1.orig/src/mesa/gl.pc.in mesa-12.0.1/src/mesa/gl.pc.in
+--- mesa-12.0.1.orig/src/mesa/gl.pc.in 2016-01-18 08:39:26.000000000 +0100
++++ mesa-12.0.1/src/mesa/gl.pc.in 2016-11-27 20:02:52.146421033 +0100
+@@ -7,7 +7,7 @@
+ Description: Mesa OpenGL library
+ Requires.private: @GL_PC_REQ_PRIV@
+ Version: @PACKAGE_VERSION@
+-Libs: -L${libdir} -l@GL_LIB@
++Libs: -L${libdir}/arm-linux-gnueabihf/tegra -L${libdir} -l@GL_LIB@
+ Libs.private: @GL_PC_LIB_PRIV@
+ Cflags: -I${includedir} @GL_PC_CFLAGS@
+ glx_tls: @GLX_TLS@