tageditor: actually fix and simplify build options

This commit is contained in:
q66 2020-04-16 00:31:21 +02:00
parent b0ef5b4bf8
commit 90fa95507b

View file

@ -19,16 +19,20 @@ desc_option_webengine="Enable support for qt5-webengine file views (requires qt)
desc_option_webkit="Enable support for qt5-webkit file views (requires qt)"
desc_option_script="Enable support for qt5-script javascript (requires qt)"
# Prefer qt5-webengine to qt5-webkit, if it can be built
case "$XBPS_TARGET_MACHINE" in
# qt5-webengine not supported on these architectures
ppc|ppc-musl|armv5tel*);;
*) if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
# webengine can be built only if word size matches
webview_backend="webengine"
fi;;
x86_64*|aarch64*|armv[67]*|ppc64le*)
if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
_use_webengine=yes
fi
;;
*) ;;
esac
build_options_default+=" ${webview_backend:-webkit}"
if [ "$_use_webengine" ]; then
build_options_default+=" webengine"
else
build_options_default+=" webkit"
fi
vopt_conflict webengine webkit