summaryrefslogtreecommitdiffstats
path: root/source/kde/KDE.options
diff options
context:
space:
mode:
Diffstat (limited to 'source/kde/KDE.options')
-rw-r--r--source/kde/KDE.options21
1 files changed, 19 insertions, 2 deletions
diff --git a/source/kde/KDE.options b/source/kde/KDE.options
index d5e478fec..730f3f460 100644
--- a/source/kde/KDE.options
+++ b/source/kde/KDE.options
@@ -3,10 +3,19 @@
# usually has a different version number), or by setting your own
# environment variables.
-[ -z $VERSION ] && export VERSION=4.2.4
-[ -z $ARCH ] && export ARCH=x86_64
+[ -z $VERSION ] && export VERSION=4.4.3
[ -z $BUILD ] && export BUILD=1
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
# Use this as CFLAGS and CXXFLAGS:
if [ -z "$SLKCFLAGS" ]; then
if [ "$ARCH" = "i486" ]; then
@@ -24,6 +33,9 @@ if [ -z "$SLKCFLAGS" ]; then
elif [ "$ARCH" = "armel" ]; then
export SLKCFLAGS="-O2 -march=armv4t"
export LIBDIRSUFFIX=""
+ else
+ export SLKCFLAGS="-O2"
+ export LIBDIRSUFFIX=""
fi
fi
@@ -32,3 +44,8 @@ if [ -z "$NUMJOBS" ]; then
export NUMJOBS="-j7"
fi
+# Additional cmake flags that are spanned across the KDE modules
+# Do not use "final build" unless we build an actual release.
+#export KDE_OPT_ARGS=" -DKDE4_ENABLE_FINAL=\"ON\" -DSITE=\"slackware.com\" "
+export KDE_OPT_ARGS=" -DSITE=\"slackware.com\" "
+