1 | #!/bin/bash
|
---|
2 |
|
---|
3 | ### kdelibs ###
|
---|
4 |
|
---|
5 | cd ${SRC}
|
---|
6 | LOG=kdelibs-kde.log
|
---|
7 |
|
---|
8 | SELF=`basename ${0}`
|
---|
9 | set_buildenv
|
---|
10 | set_libdirname
|
---|
11 | setup_multiarch
|
---|
12 | if [ ! "${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}"
|
---|
18 | fi
|
---|
19 |
|
---|
20 | # override TARBALLS to point at kde/stable tree
|
---|
21 | export TARBALLS=${KDE_TARBALLS}/stable/${KDE_VER}/src
|
---|
22 | unpack_tarball kdelibs-${KDELIBS_VER}
|
---|
23 | cd ${PKGDIR}
|
---|
24 |
|
---|
25 | # override PATCHES to point at kde/stable tree
|
---|
26 | export PATCHES="${KDE_TARBALLS}/stable/${KDE_VER}/patches"
|
---|
27 |
|
---|
28 | case ${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 | ;;
|
---|
34 | esac
|
---|
35 |
|
---|
36 | # fast-malloc only works on i?86 ...
|
---|
37 | # --enable-fast-malloc=full \
|
---|
38 | max_log_init kdelibs ${KDELIBS_VER} "kde (shared)" ${CONFLOGS} ${LOG}
|
---|
39 | CC="${CC-gcc} ${ARCH_CFLAGS}" \
|
---|
40 | CXX="${CXX-g++} ${ARCH_CFLAGS}" \
|
---|
41 | CFLAGS="${TGT_CFLAGS}" \
|
---|
42 | CXXFLAS="${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 &&
|
---|
47 | echo " o Configure OK" &&
|
---|
48 |
|
---|
49 | min_log_init ${BUILDLOGS} &&
|
---|
50 | make \
|
---|
51 | >> ${LOGFILE} 2>&1 &&
|
---|
52 | echo " o Build OK" &&
|
---|
53 |
|
---|
54 | min_log_init ${TESTLOGS} &&
|
---|
55 | make check \
|
---|
56 | >> ${LOGFILE} 2>&1 &&
|
---|
57 | echo " o Test OK" || errmsg
|
---|
58 |
|
---|
59 | min_log_init ${INSTLOGS} &&
|
---|
60 | make install \
|
---|
61 | >> ${LOGFILE} 2>&1 &&
|
---|
62 | echo " o ALL OK" || barf
|
---|
63 |
|
---|
64 | if [ "${MULTIARCH}" = "Y" ]; then
|
---|
65 | use_wrapper ${KDE_PREFIX}/bin/kde-config
|
---|
66 | fi
|
---|