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:
parent
fb14368717
commit
688f27c40a
1 changed files with 4 additions and 1 deletions
|
@ -3,9 +3,9 @@
|
||||||
# revbump libqtxdg after bumping patch version
|
# revbump libqtxdg after bumping patch version
|
||||||
pkgname=qt5
|
pkgname=qt5
|
||||||
version=5.15.11+20231124
|
version=5.15.11+20231124
|
||||||
|
revision=3
|
||||||
# commit 4765fa1df7a837db9c1f89c4da0dd76b74bb5fab
|
# commit 4765fa1df7a837db9c1f89c4da0dd76b74bb5fab
|
||||||
# base repo: https://invent.kde.org/qt/qt/qt5
|
# base repo: https://invent.kde.org/qt/qt/qt5
|
||||||
revision=2
|
|
||||||
build_style=meta
|
build_style=meta
|
||||||
hostmakedepends="cmake clang17 flex perl glib-devel pkg-config
|
hostmakedepends="cmake clang17 flex perl glib-devel pkg-config
|
||||||
python3 re2c ruby which"
|
python3 re2c ruby which"
|
||||||
|
@ -159,6 +159,9 @@ _create_config() {
|
||||||
echo "QMAKE_CFLAGS = ${CFLAGS}" >> ${qmake_conf}
|
echo "QMAKE_CFLAGS = ${CFLAGS}" >> ${qmake_conf}
|
||||||
echo "QMAKE_CXXFLAGS = ${CXXFLAGS}" >> ${qmake_conf}
|
echo "QMAKE_CXXFLAGS = ${CXXFLAGS}" >> ${qmake_conf}
|
||||||
echo >> ${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
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
arm*)
|
arm*)
|
||||||
echo "include(../common/linux_arm_device_post.conf)" >> ${qmake_conf} ;;
|
echo "include(../common/linux_arm_device_post.conf)" >> ${qmake_conf} ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue