aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2021-02-26 14:30:26 +0100
committerBart Ribbers <bribbers@disroot.org>2021-05-28 16:18:01 +0000
commit7f4d238dabf7928927b9859a769f32253679366b (patch)
treee46d45b8eac6bdaf29fa9ea4b6b60ee0d5d07bab
parentd2375911ad3dd03b6d501964e9db6f0b995b9fd4 (diff)
downloadaports-7f4d238dabf7928927b9859a769f32253679366b.tar.gz
aports-7f4d238dabf7928927b9859a769f32253679366b.tar.bz2
aports-7f4d238dabf7928927b9859a769f32253679366b.tar.xz
testing/qt6-qtbase: build with OpenGLES on arm*
-rw-r--r--community/qt6-qtbase/APKBUILD11
1 files changed, 8 insertions, 3 deletions
diff --git a/community/qt6-qtbase/APKBUILD b/community/qt6-qtbase/APKBUILD
index 724e5bbddf..1ce3dc3959 100644
--- a/community/qt6-qtbase/APKBUILD
+++ b/community/qt6-qtbase/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt6-qtbase
pkgver=6.1.0
-pkgrel=2
+pkgrel=3
pkgdesc="A cross-platform application and UI framework"
url="https://qt.io"
arch="all"
@@ -66,6 +66,10 @@ esac
source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtbase-everywhere-src-${pkgver/_/-}.tar.xz"
+case "$CTARGET_ARCH" in
+ arm*|aarch64) _opengl="-DQT_FEATURE_opengles2=ON" ;;
+esac
+
build() {
cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
@@ -79,8 +83,9 @@ build() {
-DINSTALL_EXAMPLESDIR=share/doc/qt6/examples \
-DQT_FEATURE_journald=OFF \
-DQT_FEATURE_openssl_linked=ON \
- -DQT_FEATURE_vulkan=ON
- cmake --build build
+ -DQT_FEATURE_vulkan=ON \
+ $_opengl
+ cmake --build build --parallel
}
check() {