Ticket #13351: 0214-Configure-allow-opengl-GLES-selection.patch

File 0214-Configure-allow-opengl-GLES-selection.patch, 3.5 KB (added by warpme, 5 years ago)

Patch for configure to add gles configurability

  • mythtv/configure

    diff -Naur mythtv-master-20181120-gd87041f-old/mythtv/configure mythtv-master-20181120-gd87041f-new/mythtv/configure
    old new  
    144144  --disable-systemd_notify disable systemd notify support
    145145  --disable-systemd_journal disable systemd journal support
    146146
     147  --enable-opengles        enable OpenGL ES
     148
    147149  --enable-mac-bundle      produce standalone OS X apps (e.g. mythfrontend.app)
    148150
    149151  --disable-libxml2        disable libxml2 support (disc metadata)
     
    19741976    lirc
    19751977    mheg
    19761978    opengl
     1979    opengles
    19771980    opengl_video
    19781981    opengl_themepainter
    19791982    openmax
     
    27772780enable mheg
    27782781enable mythtranscode
    27792782enable opengl
    2780 enable opengles
     2783disable opengles
    27812784enable opengl_video
    27822785enable opengl_themepainter
    27832786enable symbol_visibility
     
    60476050                               check_lib opengl OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" ||
    60486051                               check_lib opengl ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" ||
    60496052                               check_lib opengl GLES/gl.h glGetError "-Wl,-framework,OpenGLES" ||
    6050                                { check_pkg_config GLESv2 glesv2 GLES2/gl2.h glGetError &&
    6051                                  check_pkg_config EGL egl EGL/egl.h eglGetProcAddress &&
    6052                                  enable opengl
    6053                                } ||
    6054                                { check_lib GLESv2 GLES2/gl2.h glGetError "-lGLESv2" &&
    6055                                  check_lib EGL EGL/egl.h eglGetProcAddress "-lEGL" &&
    6056                                  enable opengl
    6057                                } ||
    6058                                die "ERROR: opengl not found."
     6053                               die "ERROR: OpenGL not found!";
    60596054                             }
     6055
     6056if enabled opengles; then
     6057    check_pkg_config GLESv2 glesv2 GLES2/gl2.h glGetError &&
     6058    check_pkg_config EGL egl EGL/egl.h eglGetProcAddress ||
     6059    die "ERROR: OpenGL ES not found!";
     6060    check_lib GLESv2 GLES2/gl2.h glGetError "-lGLESv2" &&
     6061    check_lib EGL EGL/egl.h eglGetProcAddress "-lEGL" ||
     6062    die "ERROR: OpenGL ES not found!";
     6063fi
     6064
    60606065if enabled libmpeg2external; then
    60616066    check_lib libmpeg2external mpeg2dec/mpeg2.h mpeg2_init -lmpeg2 || disable libmpeg2external
    60626067    if disabled libmpeg2external; then
     
    65636568# Disable OpenGL ES support if Qt does not support it
    65646569QTCONF=$(pkg-config --variable=qt_config Qt5Core || pkg-config --variable=qt_config QtCore)
    65656570if echo "$QTCONF" | grep -qv opengles2 ; then
    6566     if test $target_os != android ; then
    6567         disable opengles
    6568     fi
     6571    true
     6572else
     6573    die "ERROR: Qt not provides OpenGL ES support"
    65696574fi
    65706575
    65716576if enabled firewire; then
     
    73777382  fi
    73787383fi
    73797384  echo "OpenGL support            ${opengl-no}"
    7380   echo "OpenGL video              ${opengl_video-no}"
    7381   echo "OpenGL ThemePainter       ${opengl_themepainter-no}"
     7385  echo "  OpenGL ES 2.0           ${opengles-no}"
     7386  echo "  OpenGL video            ${opengl_video-no}"
     7387  echo "  OpenGL ThemePainter     ${opengl_themepainter-no}"
    73827388  if test x"$target_os" = x"darwin" ; then
    73837389    echo "VDA support               ${vda-no}"
    73847390  fi
     
    74017407fi
    74027408echo "libdns_sd (Bonjour)       ${libdns_sd-no}"
    74037409echo "libcrypto                 ${libcrypto-no}"
    7404 echo "OpenGL ES 2.0             ${opengles-no}"
    74057410if enabled libbluray_external; then
    74067411    echo "bluray support            yes (system)"
    74077412else