5dc9099305dcebc4cca4a970f3fd0da92455acbc
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mesa3d / 0001-Fix-khrplatform.h-not-installed-if-EGL-is-disabled.patch
1 From 83a1afd73f2d0aff9aa11c1754d6d407983afa7d Mon Sep 17 00:00:00 2001
2 From: Eric Le Bihan <eric.le.bihan.dev@free.fr>
3 Date: Wed, 9 Apr 2014 12:48:36 +0200
4 Subject: [PATCH] Fix khrplatform.h not installed if EGL is disabled.
5
6 KHR/khrplatform.h is required by the EGL, GLES and VG headers, but is
7 only installed if Mesa3d is compiled with EGL support.
8
9 This patch installs this header file unconditionally.
10
11 Patch sent upstream: https://bugs.freedesktop.org/show_bug.cgi?id=77240
12
13 Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
14 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> (rebased for mesa3d 10.3)
15
16 diff -uNr Mesa-10.3.0-rc2.org/src/egl/main/Makefile.am Mesa-10.3.0-rc2/src/egl/main/Makefile.am
17 --- Mesa-10.3.0-rc2.org/src/egl/main/Makefile.am        2014-08-29 00:00:57.000000000 +0200
18 +++ Mesa-10.3.0-rc2/src/egl/main/Makefile.am    2014-09-02 21:35:52.548071820 +0200
19 @@ -85,9 +85,6 @@
20  
21  pkgconfig_DATA = egl.pc
22  
23 -khrdir = $(includedir)/KHR
24 -khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h
25 -
26  egldir = $(includedir)/EGL
27  egl_HEADERS = \
28         $(top_srcdir)/include/EGL/eglext.h \
29 diff -uNr Mesa-10.3.0-rc2.org/src/mapi/Makefile.am Mesa-10.3.0-rc2/src/mapi/Makefile.am
30 --- Mesa-10.3.0-rc2.org/src/mapi/Makefile.am    2014-09-01 01:22:12.000000000 +0200
31 +++ Mesa-10.3.0-rc2/src/mapi/Makefile.am        2014-09-02 21:36:22.891686861 +0200
32 @@ -211,4 +211,7 @@
33  SUBDIRS += vgapi
34  endif
35  
36 +khrdir = $(includedir)/KHR
37 +khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h
38 +
39  include $(top_srcdir)/install-lib-links.mk