1 This patches makes opengl an optional component.
3 Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
5 Index: mesa3d-demos-8.1.0/configure.ac
6 ===================================================================
7 --- mesa3d-demos-8.1.0.orig/configure.ac
8 +++ mesa3d-demos-8.1.0/configure.ac
10 ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
14 + [AS_HELP_STRING([--enable-gl],
15 + [enable GL library @<:@default=no@:>@])],
16 + [gl_enabled="$enableval"],
19 +if test "x$gl_enabled" != "xno"; then
21 dnl Get the pkg-config definitions for libGL. We include a fallback
22 dnl path for GL implementation that don't provide a .pc file
23 PKG_CHECK_MODULES(GL, [gl], [], [
25 DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
26 DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
31 [AS_HELP_STRING([--enable-egl],
32 [enable EGL library @<:@default=auto@:>@])],
34 AC_SUBST([WAYLAND_CFLAGS])
35 AC_SUBST([WAYLAND_LIBS])
38 +AM_CONDITIONAL(HAVE_GL, test "x$gl_enabled" = "xyes")
39 AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
40 AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
41 AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
42 Index: mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
43 ===================================================================
44 --- mesa3d-demos-8.1.0.orig/src/egl/opengl/Makefile.am
45 +++ mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
59 egltri_x11_SOURCES = egltri.c
60 eglgears_x11_SOURCES = eglgears.c
61 Index: mesa3d-demos-8.1.0/src/util/Makefile.am
62 ===================================================================
63 --- mesa3d-demos-8.1.0.orig/src/util/Makefile.am
64 +++ mesa3d-demos-8.1.0/src/util/Makefile.am
65 @@ -27,7 +27,9 @@ AM_CFLAGS = \
70 noinst_LTLIBRARIES = libutil.la