summaryrefslogtreecommitdiffstats
path: root/KDE5_FUNCTIONS
diff options
context:
space:
mode:
Diffstat (limited to 'KDE5_FUNCTIONS')
-rwxr-xr-xKDE5_FUNCTIONS14
1 files changed, 8 insertions, 6 deletions
diff --git a/KDE5_FUNCTIONS b/KDE5_FUNCTIONS
index 302b4c6f99..7948cb5711 100755
--- a/KDE5_FUNCTIONS
+++ b/KDE5_FUNCTIONS
@@ -2,19 +2,21 @@ KF5DIR="$INSTALL_ROOT/usr"
export XDG_DATA_DIRS=/usr/share
#---------------------------------------------------------------------
-function kde5_build() {
+default_build() {
CXXFLAGS+=' -Wno-deprecated-declarations'
OPTS+=" -DLIB_INSTALL_DIR=lib"
OPTS+=" -Wno-dev $CM_TESTS"
OPTS+=" -DKDE_SKIP_UNINSTALL_TARGET=1"
- qt5_cmake_build
+ if is_depends_enabled $SPELL qt6base;then
+ OPTS+=" -DBUILD_WITH_QT6=1"
+ OPTS+=" -DCMAKE_INSTALL_PREFIX=${QT6DIR}"
+ cmake_build $QT6DIR
+ else
+ cmake_build
+ fi
}
-default_build() {
- kde5_build
-}
-
function default_install() {
cmake_install
}