User:Rellla/Armbian/vlc

From linux-sunxi.org
Jump to navigation Jump to search

We need these patches to eleminate the OpenGL dependency. I have no clue, if this can be disabled with a configure flag...

configure.ac.diff

--- configure.ac.bak    2016-05-31 18:11:07.000000000 +0200
+++ configure.ac        2016-06-17 10:13:02.986359522 +0200
@@ -3079,22 +3079,7 @@
 PKG_CHECK_MODULES([GL], [gl], [
   have_gl="yes"
 ], [
-  AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
-#ifdef _WIN32
-# include <GL/glew.h>
-#endif
-#include <GL/gl.h>
-]], [
-    [int t0 = GL_TEXTURE0;]])
-  ], [
-    GL_CFLAGS=""
-    have_gl="yes"
-    AS_IF([test "${SYS}" != "mingw32"], [
-      GL_LIBS="-lGL"
-    ], [
-      GL_LIBS="-lopengl32"
-    ])
-  ])
+  have_gl="no"
 ])
 AM_CONDITIONAL([HAVE_GL], [test "${have_gl}" = "yes"])

configure.diff

--- configure.bak       2016-05-31 18:56:33.000000000 +0200
+++ configure   2016-06-17 10:20:57.742504063 +0200
@@ -43012,79 +43012,13 @@
        echo "$GL_PKG_ERRORS" >&5


-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-#ifdef _WIN32
-# include <GL/glew.h>
-#endif
-#include <GL/gl.h>
-
-int
-main ()
-{
-
-    int t0 = GL_TEXTURE0;
-  ;
-  return 0;
-}
-
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-    GL_CFLAGS=""
-    have_gl="yes"
-    if test "${SYS}" != "mingw32"; then :
-
-      GL_LIBS="-lGL"
-
-else
-
-      GL_LIBS="-lopengl32"
-
-fi
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  have_gl="no"

 elif test $pkg_failed = untried; then
        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }

-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-#ifdef _WIN32
-# include <GL/glew.h>
-#endif
-#include <GL/gl.h>
-
-int
-main ()
-{
-
-    int t0 = GL_TEXTURE0;
-  ;
-  return 0;
-}
-
-_ACEOF
-if ac_fn_c_try_compile "$LINENO"; then :
-
-    GL_CFLAGS=""
-    have_gl="yes"
-    if test "${SYS}" != "mingw32"; then :
-
-      GL_LIBS="-lGL"
-
-else
-
-      GL_LIBS="-lopengl32"
-
-fi
-
-fi
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+  have_gl="no"

 else
        GL_CFLAGS=$pkg_cv_GL_CFLAGS