. "${GRIMOIRE}/MESON_CONFIGURE" &&

list_remove MPV_OPTS "--enable-dvb" &&
list_remove MPV_OPTS "--disable-dvb" &&

list_remove MPV_OPTS "--enable-dvbin" &&
list_remove MPV_OPTS "--disable-dvbin" &&

config_query_option MPV_OPTS "Build GPLv2+ version of MPV?" y \
                             "gpl=true" \
                             "gpl=false" &&
if list_find "$MPV_OPTS" "gpl=true"; then
  config_query_option MPV_OPTS "Enable DVB input module?" y \
                               "dvbin=enabled" \
                               "dvbin=disabled"
fi &&

config_query_option MPV_OPTS "Build libmpv library?" n \
                             "libmpv=true" \
                             "libmpv=false" &&

list_remove MPV_OPTS "--enable-joystick" &&
list_remove MPV_OPTS "--disable-joystick" &&

list_remove MPV_OPTS "--enable-ladspa" &&
list_remove MPV_OPTS "--disable-ladspa" &&

list_remove MPV_OPTS "--enable-encoding" &&
list_remove MPV_OPTS "--disable-encoding" &&

list_remove MPV_OPTS "--enable-libass-osd" &&
list_remove MPV_OPTS "--disable-libass-osd"
