summaryrefslogtreecommitdiffstats
path: root/FUNCTIONS
diff options
context:
space:
mode:
authorTreeve Jelbert2007-12-16 10:25:56 +0100
committerTreeve Jelbert2007-12-16 10:25:56 +0100
commit04852756d5aff290de817e9a45377c320545406f (patch)
treebd1fe2b276bc58c6584ebc79db679794b3366172 /FUNCTIONS
parentcb6a6c0d77661ae8bab646a59c7091626d27609e (diff)
update kde3 build process
Diffstat (limited to 'FUNCTIONS')
-rwxr-xr-xFUNCTIONS37
1 files changed, 37 insertions, 0 deletions
diff --git a/FUNCTIONS b/FUNCTIONS
index f9fda6a0d9..70ea38e8b3 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -652,3 +652,40 @@ function get_kernel_config()
fi
}
+# this is mostly copied from sorcery real_default_sorcery_build,
+# and kde-apps/KDE_BUILD
+
+# we need a different --includedir value for KDE3 spells,
+# so as to avoid conflicts with KDE4
+
+function default_kde3_build() {
+
+ if [[ -f /etc/profile.d/qt.sh ]]; then
+ . /etc/profile.d/qt.sh
+ fi &&
+ OPTS="$KDE_DEBUG_OPTION \
+ $KDE_FINAL_OPTION \
+ $KDE_LDFLAGS \
+ --enable-dnotify \
+ --with-distribution \
+ --disable-dependency-tracking \
+ $OPTS" &&
+
+ OPTS="$OPTS --build=${BUILD}"
+ #If these switches are used, they _may_ stop distcc and ccache from working
+ # for some spells (bug 3798)
+ # We could write wrappers for all of the possible binaries
+ [[ $CROSS_INSTALL == on ]] && OPTS="$OPTS --host=${HOST}"
+
+ ./configure --prefix=${INSTALL_ROOT}/usr \
+ --sysconfdir=${INSTALL_ROOT}/etc \
+ --localstatedir=${INSTALL_ROOT}/var \
+ --mandir=${INSTALL_ROOT}/usr/share/man \
+ --infodir=${INSTALL_ROOT}/usr/share/info \
+ --includedir=${INSTALL_ROOT}/usr/include/kde3 \
+ $OPTS &&
+ make
+
+}
+
+