summaryrefslogtreecommitdiffstats
path: root/kde
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2015-09-02 09:55:11 +0200
committer Eric Hameleers <alien@slackware.com>2015-09-02 09:55:11 +0200
commit7a938b769d842e17e6f78f97f3077348eccc3b84 (patch)
treecdf7fd48db7f2842098a1cf237318d707982b673 /kde
parent46f75182ca9eb51d50238702b08a30f9717825e6 (diff)
downloadktown-7a938b769d842e17e6f78f97f3077348eccc3b84.tar.gz
ktown-7a938b769d842e17e6f78f97f3077348eccc3b84.tar.xz
Custom make scripts for breeze and marble
Diffstat (limited to 'kde')
-rw-r--r--kde/make/breeze10
-rw-r--r--kde/make/marble23
2 files changed, 33 insertions, 0 deletions
diff --git a/kde/make/breeze b/kde/make/breeze
new file mode 100644
index 0000000..52c7fe6
--- /dev/null
+++ b/kde/make/breeze
@@ -0,0 +1,10 @@
+# Breeze's cmake left us in build_qt4,
+# so we build and install Qt4 support first:
+make $NUMJOBS || make || exit 1
+make install DESTDIR=$PKG || exit 1
+
+# Go back to build_qt5 and build/install the Qt5 support:
+cd ../build_qt5
+make $NUMJOBS || make || exit 1
+make install DESTDIR=$PKG || exit 1
+
diff --git a/kde/make/marble b/kde/make/marble
new file mode 100644
index 0000000..2f12213
--- /dev/null
+++ b/kde/make/marble
@@ -0,0 +1,23 @@
+# Marble's cmake left us in build_qt4,
+# so we build and install Qt4 support first:
+make $NUMJOBS || make || exit 1
+make install DESTDIR=$PKG || exit 1
+# Move the marble4 cmake file so that it will be found:
+mkdir -p $PKG/usr/share/apps/cmake/modules
+mv $PKG/usr/share/marble/cmake/FindMarble.cmake \
+ $PKG/usr/share/apps/cmake/modules/FindMarble.cmake
+# Rename the marble4 include dir to avoid a conflict with marble:
+mv $PKG/usr/include/marble{,4}
+# And fix that include path in the cmake file too:
+sed -i $PKG/usr/share/apps/cmake/modules/FindMarble.cmake \
+ -e 's,marble/MarbleModel.h,marble4/MarbleModel.h,'
+
+# Go back to build_qt5 and build/install the Qt5 support:
+cd ..
+# Fix installation of the designer plugins - only a problem for the Qt5 libs:
+sed -i CMakeLists.txt \
+ -e 's,LIB_SUFFIX}/plugins,LIB_SUFFIX}/qt5/plugins,g'
+cd build_qt5
+make $NUMJOBS || make || exit 1
+make install DESTDIR=$PKG || exit 1
+