Skip to content

Commit

Permalink
Disable browser and music plugins if QtWebkit is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Apr 10, 2020
1 parent edf1aba commit e65f915
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions mythplugins/configure
Expand Up @@ -571,6 +571,7 @@ CXXPPFLAGS=$(cat mythconfig.mak | grep -e "^CXXPPFLAGS=")
CXXPPFLAGS=${CXXPPFLAGS#CXXPPFLAGS=}
OPENGLV=$(cat mythconfig.mak | grep -e "^CONFIG_OPENGL_VIDEO=yes")
OPENGLES=$(cat mythconfig.mak | grep -e "^HAVE_GLES2_GL2_H=yes")
WEBKIT=$(cat mythconfig.mak | grep -e "^CONFIG_QTWEBKIT=yes")

EXTRALIBS=$(cat mythconfig.mak | grep -e "^EXTRALIBS=")
EXTRALIBS=${EXTRALIBS#EXTRALIBS=}
Expand Down Expand Up @@ -631,6 +632,13 @@ if ! check_lib libexif/exif-data.h exif_loader_new -lexif ; then
disable exif
fi

if enabled browser; then
if test "$WEBKIT" != "CONFIG_QTWEBKIT=yes"; then
disable browser
echo "MythBrowser requires QtWebkit."
fi
fi

if enabled game; then
if check_lib unzip.h unzGetCurrentFileInfo -lminizip ; then
MINIZIP_PREFIX=
Expand Down Expand Up @@ -701,6 +709,11 @@ if test x"$icc" != x ; then
fi

if enabled music ; then
if test "$WEBKIT" != "CONFIG_QTWEBKIT=yes"; then
disable music
echo "MythMusic requires QtWebkit."
fi

if ! check_lib vorbis/codec.h vorbis_info_init -lvorbis || ! check_lib vorbis/vorbisenc.h vorbis_encode_setup_vbr -lvorbisenc -lvorbis -logg ; then
disable vorbis
echo "MythMusic requires vorbis."
Expand Down

0 comments on commit e65f915

Please sign in to comment.