2014-10-17 22:07:08 +02:00
|
|
|
This patches makes opengl an optional component.
|
|
|
|
|
|
|
|
Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
|
|
|
|
---
|
|
|
|
Index: mesa3d-demos-8.1.0/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- mesa3d-demos-8.1.0.orig/configure.ac
|
|
|
|
+++ mesa3d-demos-8.1.0/configure.ac
|
2015-12-12 19:31:36 +01:00
|
|
|
@@ -51,6 +51,14 @@
|
2014-10-17 22:07:08 +02:00
|
|
|
ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
|
|
|
|
PKG_PROG_PKG_CONFIG()
|
|
|
|
|
|
|
|
+AC_ARG_ENABLE([gl],
|
|
|
|
+ [AS_HELP_STRING([--enable-gl],
|
|
|
|
+ [enable GL library @<:@default=no@:>@])],
|
|
|
|
+ [gl_enabled="$enableval"],
|
|
|
|
+ [gl_enabled=auto])
|
|
|
|
+
|
|
|
|
+if test "x$gl_enabled" != "xno"; then
|
|
|
|
+
|
|
|
|
dnl Get the pkg-config definitions for libGL. We include a fallback
|
|
|
|
dnl path for GL implementation that don't provide a .pc file
|
|
|
|
PKG_CHECK_MODULES(GL, [gl], [], [
|
2015-12-12 19:31:36 +01:00
|
|
|
@@ -113,6 +121,8 @@
|
2014-10-17 22:07:08 +02:00
|
|
|
DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
|
|
|
|
DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
|
|
|
|
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
AC_ARG_ENABLE([egl],
|
|
|
|
[AS_HELP_STRING([--enable-egl],
|
2015-12-12 19:31:36 +01:00
|
|
|
[enable EGL library @<:@default=auto@:>@])],
|
|
|
|
@@ -303,7 +313,7 @@
|
2014-10-17 22:07:08 +02:00
|
|
|
AC_SUBST([WAYLAND_CFLAGS])
|
|
|
|
AC_SUBST([WAYLAND_LIBS])
|
|
|
|
|
|
|
|
-
|
|
|
|
+AM_CONDITIONAL(HAVE_GL, test "x$gl_enabled" = "xyes")
|
|
|
|
AM_CONDITIONAL(HAVE_EGL, test "x$egl_enabled" = "xyes")
|
|
|
|
AM_CONDITIONAL(HAVE_GLESV1, test "x$glesv1_enabled" = "xyes")
|
|
|
|
AM_CONDITIONAL(HAVE_GLESV2, test "x$glesv2_enabled" = "xyes")
|
|
|
|
Index: mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- mesa3d-demos-8.1.0.orig/src/egl/opengl/Makefile.am
|
|
|
|
+++ mesa3d-demos-8.1.0/src/egl/opengl/Makefile.am
|
2015-12-12 19:31:36 +01:00
|
|
|
@@ -50,12 +50,14 @@
|
2014-10-17 22:07:08 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
if HAVE_EGL
|
|
|
|
+if HAVE_GL
|
|
|
|
noinst_PROGRAMS = \
|
2015-12-12 19:31:36 +01:00
|
|
|
eglinfo \
|
|
|
|
peglgears \
|
2014-10-17 22:07:08 +02:00
|
|
|
$(EGL_DRM_DEMOS) \
|
|
|
|
$(EGL_X11_DEMOS)
|
|
|
|
endif
|
|
|
|
+endif
|
|
|
|
|
2015-12-12 19:31:36 +01:00
|
|
|
egltri_x11_SOURCES = egltri.c
|
|
|
|
eglgears_x11_SOURCES = eglgears.c
|
2014-10-17 22:07:08 +02:00
|
|
|
Index: mesa3d-demos-8.1.0/src/util/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- mesa3d-demos-8.1.0.orig/src/util/Makefile.am
|
|
|
|
+++ mesa3d-demos-8.1.0/src/util/Makefile.am
|
|
|
|
@@ -27,7 +27,9 @@ AM_CFLAGS = \
|
|
|
|
AM_LDFLAGS = \
|
|
|
|
$(DEMO_LIBS)
|
|
|
|
|
|
|
|
+if HAVE_GL
|
|
|
|
noinst_LTLIBRARIES = libutil.la
|
|
|
|
+endif
|
|
|
|
|
|
|
|
if HAVE_GLUT
|
|
|
|
AM_CFLAGS += \
|