The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / mesa3d-demos / 0003-demos-x11-fix.patch
1 This patch ensures that programs which depend on x11 are not build if x11
2 is not available.
3
4 Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
5 ---
6 Index: mesa3d-demos-8.1.0/src/egl/opengles2/Makefile.am
7 ===================================================================
8 --- mesa3d-demos-8.1.0.orig/src/egl/opengles2/Makefile.am
9 +++ mesa3d-demos-8.1.0/src/egl/opengles2/Makefile.am
10 @@ -35,9 +35,10 @@ AM_LDFLAGS = \
11  
12  if HAVE_EGL
13  if HAVE_GLESV2
14 -bin_PROGRAMS = \
15 +bin_PROGRAMS = es2gears_screen
16 +if HAVE_X11
17 +bin_PROGRAMS += \
18         es2_info \
19 -       es2gears_screen \
20         es2gears_x11 \
21         es2tri
22  if HAVE_WAYLAND
23 @@ -45,6 +46,7 @@ bin_PROGRAMS += es2gears_wayland
24  endif
25  endif
26  endif
27 +endif
28  
29  es2_info_LDADD = $(X11_LIBS)
30  es2tri_LDADD = $(X11_LIBS)