Ticket #13351: 0214-Configure-allow-opengl-GLES-selection-v2.patch
File 0214-Configure-allow-opengl-GLES-selection-v2.patch, 4.6 KB (added by , 5 years ago) |
---|
-
mythtv/configure
diff -Naur mythtv-master-20181124-gb89d3b6-old/mythtv/configure mythtv-master-20181124-gb89d3b6-new/mythtv/configure
old new 144 144 --disable-systemd_notify disable systemd notify support 145 145 --disable-systemd_journal disable systemd journal support 146 146 147 --enable-opengles enable OpenGL ES 148 147 149 --enable-mac-bundle produce standalone OS X apps (e.g. mythfrontend.app) 148 150 149 151 --disable-libxml2 disable libxml2 support (disc metadata) … … 1974 1976 lirc 1975 1977 mheg 1976 1978 opengl 1979 opengles 1977 1980 opengl_video 1978 1981 opengl_themepainter 1979 1982 openmax … … 2777 2780 enable mheg 2778 2781 enable mythtranscode 2779 2782 enable opengl 2780 enable opengles2783 disable opengles 2781 2784 enable opengl_video 2782 2785 enable opengl_themepainter 2783 2786 enable symbol_visibility … … 6042 6045 { check_cpp_condition x264.h "X264_MPEG2" && 6043 6046 enable libx262; } 6044 6047 enabled libxml2 && require_pkg_config libxml2 libxml-2.0 libxml/xmlversion.h xmlCheckVersion 6045 enabled opengl && { check_lib opengl GL/glx.h glXGetProcAddress "-lGL" || 6046 check_lib opengl windows.h wglGetProcAddress "-lopengl32 -lgdi32" || 6047 check_lib opengl OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" || 6048 check_lib opengl ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" || 6049 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." 6059 } 6048 6049 if enabled opengl; then 6050 check_lib opengl GL/glx.h glXGetProcAddress "-lGL" || 6051 check_lib opengl windows.h wglGetProcAddress "-lopengl32 -lgdi32" || 6052 check_lib opengl OpenGL/gl3.h glGetError "-Wl,-framework,OpenGL" || 6053 check_lib opengl ES2/gl.h glGetError "-isysroot=${sysroot} -Wl,-framework,OpenGLES" || 6054 check_lib opengl GLES/gl.h glGetError "-Wl,-framework,OpenGLES" || 6055 { check_lib GLESv2 GLES2/gl2.h glGetError "-lGLESv2" && 6056 check_lib EGL EGL/egl.h eglGetProcAddress "-lEGL"; } || 6057 die "ERROR: OpenGL not found!"; 6058 enable opengl 6059 if enabled opengl_video; then 6060 enable opengl_video 6061 fi 6062 if enabled opengl_themepainter; then 6063 enable opengl_themepainter 6064 fi 6065 fi 6066 6067 if enabled opengles; then 6068 check_pkg_config GLESv2 glesv2 GLES2/gl2.h glGetError && 6069 check_pkg_config EGL egl EGL/egl.h eglGetProcAddress || 6070 die "ERROR: OpenGL ES not found!"; 6071 check_lib GLESv2 GLES2/gl2.h glGetError "-lGLESv2" && 6072 check_lib EGL EGL/egl.h eglGetProcAddress "-lEGL" || 6073 die "ERROR: OpenGL ES not found!"; 6074 fi 6075 6060 6076 if enabled libmpeg2external; then 6061 6077 check_lib libmpeg2external mpeg2dec/mpeg2.h mpeg2_init -lmpeg2 || disable libmpeg2external 6062 6078 if disabled libmpeg2external; then … … 6563 6579 # Disable OpenGL ES support if Qt does not support it 6564 6580 QTCONF=$(pkg-config --variable=qt_config Qt5Core || pkg-config --variable=qt_config QtCore) 6565 6581 if echo "$QTCONF" | grep -qv opengles2 ; then 6566 if test $target_os != android ; then6567 disable opengles 6568 fi6582 true 6583 else 6584 die "ERROR: Qt not provides OpenGL ES support" 6569 6585 fi 6570 6586 6571 6587 if enabled firewire; then … … 7377 7393 fi 7378 7394 fi 7379 7395 echo "OpenGL support ${opengl-no}" 7380 echo "OpenGL video ${opengl_video-no}" 7381 echo "OpenGL ThemePainter ${opengl_themepainter-no}" 7396 echo " OpenGL ES 2.0 ${opengles-no}" 7397 echo " OpenGL video ${opengl_video-no}" 7398 echo " OpenGL ThemePainter ${opengl_themepainter-no}" 7382 7399 if test x"$target_os" = x"darwin" ; then 7383 7400 echo "VDA support ${vda-no}" 7384 7401 fi … … 7401 7418 fi 7402 7419 echo "libdns_sd (Bonjour) ${libdns_sd-no}" 7403 7420 echo "libcrypto ${libcrypto-no}" 7404 echo "OpenGL ES 2.0 ${opengles-no}"7405 7421 if enabled libbluray_external; then 7406 7422 echo "bluray support yes (system)" 7407 7423 else