open-plc-utils: new package
[buildroot-gz.git] / package / mesa3d-demos / 0003-demos-x11-fix.patch
blobf6b3b0cb3ea697c7bd9ad9b66d1b7e6dc8ebeaad
1 This patch ensures that programs which depend on x11 are not build if x11
2 is not available.
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 = \
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
29 es2_info_LDADD = $(X11_LIBS)
30 es2tri_LDADD = $(X11_LIBS)