source: scripts/untested/kde-scripts/kde-kde-libs.sh@ b15e4602

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since b15e4602 was 300656b, checked in by Jim Gifford <clfs@…>, 19 years ago

r585@server (orig r583): ryan | 2005-08-05 21:47:55 -0700
Update all kde build scripts... tested and working on bi-arch amd64



  • Property mode set to 100755
File size: 1.7 KB
Line 
1#!/bin/bash
2
3### kdelibs ###
4
5cd ${SRC}
6LOG=kdelibs-kde.log
7
8SELF=`basename ${0}`
9set_buildenv
10set_libdirname
11setup_multiarch
12if [ ! "${libdirname}" = "lib" ]; then
13 extra_conf="--libdir=${KDE_PREFIX}/${libdirname}"
14 extra_conf="${extra_conf} --enable-libsuffix=${BUILDENV}"
15 # for some reason /opt/kde/lib64 was missing during linking...
16 # you'd think the pkgconfig or .la files would have sorted that...
17 extra_conf="${extra_conf} --with-extra-libs=${KDE_PREFIX}/${libdirname}"
18fi
19
20# override TARBALLS to point at kde/stable tree
21export TARBALLS=${KDE_TARBALLS}/stable/${KDE_VER}/src
22unpack_tarball kdelibs-${KDELIBS_VER}
23cd ${PKGDIR}
24
25# override PATCHES to point at kde/stable tree
26export PATCHES="${KDE_TARBALLS}/stable/${KDE_VER}/patches"
27
28case ${KDE_VER} in
29 3.3.2 )
30 apply_patch post-3.3.2-kdelibs-htmlframes2 -Np0
31 apply_patch post-3.3.2-kdelibs-kioslave -Np0
32 patch -Np0 kio/kio/job.cpp ${PATCHES}/post-3.3.2-kdelibs-kio.diff
33 ;;
34esac
35
36# fast-malloc only works on i?86 ...
37# --enable-fast-malloc=full \
38max_log_init kdelibs ${KDELIBS_VER} "kde (shared)" ${CONFLOGS} ${LOG}
39CC="${CC-gcc} ${ARCH_CFLAGS}" \
40CXX="${CXX-g++} ${ARCH_CFLAGS}" \
41CFLAGS="${TGT_CFLAGS}" \
42CXXFLAS="${TGT_CFLAGS}" \
43./configure --prefix=${KDE_PREFIX} ${extra_conf} \
44 --disable-debug --disable-dependency-tracking \
45 --with-qt-libraries=/opt/qt/${libdirname} \
46 >> ${LOGFILE} 2>&1 &&
47echo " o Configure OK" &&
48
49min_log_init ${BUILDLOGS} &&
50make \
51 >> ${LOGFILE} 2>&1 &&
52echo " o Build OK" &&
53
54min_log_init ${TESTLOGS} &&
55make check \
56 >> ${LOGFILE} 2>&1 &&
57echo " o Test OK" || errmsg
58
59min_log_init ${INSTLOGS} &&
60make install \
61 >> ${LOGFILE} 2>&1 &&
62echo " o ALL OK" || barf
63
64if [ "${MULTIARCH}" = "Y" ]; then
65 use_wrapper ${KDE_PREFIX}/bin/kde-config
66fi
Note: See TracBrowser for help on using the repository browser.