qt5: use a sane default platform

on arm*/aarch64*, qt5 defaults to the eglfs QPA platform, which is
designed for embedded devices. because this is probably a less-common
use-case on Void, it's more sane to default to xcb, like x86_64* does.
This commit is contained in:
classabbyamp 2024-04-12 02:08:14 -04:00 committed by classabbyamp
parent fb14368717
commit 688f27c40a
1 changed files with 4 additions and 1 deletions

View File

@ -3,9 +3,9 @@
# revbump libqtxdg after bumping patch version
pkgname=qt5
version=5.15.11+20231124
revision=3
# commit 4765fa1df7a837db9c1f89c4da0dd76b74bb5fab
# base repo: https://invent.kde.org/qt/qt/qt5
revision=2
build_style=meta
hostmakedepends="cmake clang17 flex perl glib-devel pkg-config
python3 re2c ruby which"
@ -159,6 +159,9 @@ _create_config() {
echo "QMAKE_CFLAGS = ${CFLAGS}" >> ${qmake_conf}
echo "QMAKE_CXXFLAGS = ${CXXFLAGS}" >> ${qmake_conf}
echo >> ${qmake_conf}
# use a sane default platform (prevent defaulting to eglfs)
echo "QT_QPA_DEFAULT_PLATFORM = xcb" >> ${qmake_conf}
echo >> ${qmake_conf}
case "$XBPS_TARGET_MACHINE" in
arm*)
echo "include(../common/linux_arm_device_post.conf)" >> ${qmake_conf} ;;