source: scripts/untested/kde-scripts/kde-kde-libs.sh@ 0ee931e

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0ee931e was 617118d, checked in by Jim Gifford <clfs@…>, 19 years ago

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

  • Property mode set to 100755
File size: 1.6 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
36max_log_init kdelibs ${KDELIBS_VER} "kde (shared)" ${CONFLOGS} ${LOG}
37CC="${CC-gcc} ${ARCH_CFLAGS}" \
38CXX="${CXX-g++} ${ARCH_CFLAGS}" \
39CFLAGS="${TGT_CFLAGS}" \
40CXXFLAS="${TGT_CFLAGS}" \
41./configure --prefix=${KDE_PREFIX} ${extra_conf} \
42 --disable-debug --disable-dependency-tracking \
43 --enable-fast-malloc=full \
44 --with-qt-libraries=/opt/qt/${libdirname} \
45 >> ${LOGFILE} 2>&1 &&
46echo " o Configure OK" &&
47
48min_log_init ${BUILDLOGS} &&
49make \
50 >> ${LOGFILE} 2>&1 &&
51echo " o Build OK" &&
52
53min_log_init ${TESTLOGS} &&
54make check \
55 >> ${LOGFILE} 2>&1 &&
56echo " o Test OK" || errmsg
57
58min_log_init ${INSTLOGS} &&
59make install \
60 >> ${LOGFILE} 2>&1 &&
61echo " o ALL OK" || barf
62
Note: See TracBrowser for help on using the repository browser.