tageditor: actually fix and simplify build options
This commit is contained in:
parent
b0ef5b4bf8
commit
90fa95507b
|
@ -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_webkit="Enable support for qt5-webkit file views (requires qt)"
|
||||||
desc_option_script="Enable support for qt5-script javascript (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
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
# qt5-webengine not supported on these architectures
|
x86_64*|aarch64*|armv[67]*|ppc64le*)
|
||||||
ppc|ppc-musl|armv5tel*);;
|
if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
|
||||||
*) if [ "$XBPS_WORDSIZE" = "$XBPS_TARGET_WORDSIZE" ]; then
|
_use_webengine=yes
|
||||||
# webengine can be built only if word size matches
|
fi
|
||||||
webview_backend="webengine"
|
;;
|
||||||
fi;;
|
*) ;;
|
||||||
esac
|
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
|
vopt_conflict webengine webkit
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue