summaryrefslogtreecommitdiffstats
path: root/package/libepoxy/0006-Make-egl-conditional.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2016-03-09 06:58:39 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-03-20 18:34:10 +0100
commit0911f32d1c34b239cbb59e1b2d89d1b5cadee7e0 (patch)
tree0220ecd8b2323ea9d23a33078b0311a30d5ed44a /package/libepoxy/0006-Make-egl-conditional.patch
parent7429785873c6572db7440d1be26fab011c5d670a (diff)
downloadbuildroot-0911f32d1c34b239cbb59e1b2d89d1b5cadee7e0.tar.gz
buildroot-0911f32d1c34b239cbb59e1b2d89d1b5cadee7e0.zip
libepoxy: move outside x11r7 scope
Move it outside x11r7 scope since it can be built without it with a few patches (sent upstream via github pull request). Motivation is simple, it's a dependency for newer gtk3 versions which can work with a wayland or broadway backend, and having a full x11 stack is pointless for that scenario. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> [Thomas: split the first patch into four separate patches, since that's how they were submitted upstream.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libepoxy/0006-Make-egl-conditional.patch')
-rw-r--r--package/libepoxy/0006-Make-egl-conditional.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/package/libepoxy/0006-Make-egl-conditional.patch b/package/libepoxy/0006-Make-egl-conditional.patch
new file mode 100644
index 0000000000..752e8e4fb9
--- /dev/null
+++ b/package/libepoxy/0006-Make-egl-conditional.patch
@@ -0,0 +1,59 @@
+From 5492e81f317e48141b0687ad77252c52c2dfcd6d Mon Sep 17 00:00:00 2001
+From: Gustavo Zacarias <gustavo@zacarias.com.ar>
+Date: Fri, 5 Feb 2016 19:03:39 -0300
+Subject: [PATCH] Make egl conditional
+
+Mesa can be built with GLX and without EGL support, so make this
+possible in epoxy as well.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+---
+ configure.ac | 11 +++++++++--
+ 1 file changed, 9 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6e56599..21e3a25 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -58,6 +58,13 @@ AC_CHECK_HEADER([KHR/khrplatform.h],
+ # uintptr_t to a void *") by default. Kill that.
+ XORG_TESTSET_CFLAG(CWARNFLAGS, [-Wno-int-conversion])
+
++AC_ARG_ENABLE([egl],
++ [AS_HELP_STRING([--disable-egl],
++ [disable if you don't want egl support])],
++ [enable_egl=$enableval],
++ [enable_egl=yes]
++ )
++
+ AC_ARG_ENABLE([glx],
+ [AS_HELP_STRING([--disable-glx],
+ [disable if you don't want x11/glx support])],
+@@ -65,6 +72,7 @@ AC_ARG_ENABLE([glx],
+ [enable_glx=yes]
+ )
+
++PKG_CHECK_MODULES(EGL, [egl], [egl=$enable_egl], [egl=no])
+ PKG_CHECK_MODULES(X11, [x11], [x11=$enable_glx], [x11=no])
+
+ AM_CONDITIONAL(HAVE_X11, test x$x11 = xyes)
+@@ -96,7 +104,7 @@ case $host_os in
+ EPOXY_LINK_LIBS=""
+ ;;
+ *)
+- build_egl=yes
++ build_egl=$egl
+ build_glx=$x11
+ build_wgl=no
+ # On platforms with dlopen, we load everything dynamically and
+@@ -109,7 +117,6 @@ AC_SUBST(EPOXY_LINK_LIBS)
+
+ AM_CONDITIONAL(BUILD_EGL, test x$build_egl = xyes)
+ if test x$build_egl = xyes; then
+- PKG_CHECK_MODULES(EGL, [egl])
+ AC_DEFINE([BUILD_EGL], [1], [build EGL tests])
+ fi
+
+--
+2.4.10
+
OpenPOWER on IntegriCloud