Annotation of /trunk/include/kde3.sminc
Parent Directory | Revision Log
Revision 1926 -
(hide annotations)
(download)
Wed Jun 10 16:20:31 2009 UTC (15 years, 3 months ago) by niro
Original Path: trunk/core/include/kde3.sminc
File size: 1904 byte(s)
Wed Jun 10 16:20:31 2009 UTC (15 years, 3 months ago) by niro
Original Path: trunk/core/include/kde3.sminc
File size: 1904 byte(s)
-splitof qt3 settings to an extra include
1 | niro | 1925 | # $Id$ |
2 | niro | 2 | |
3 | niro | 1926 | sminclude qt3 |
4 | |||
5 | niro | 2 | ## some global vars ## |
6 | export KDEDIR=/usr | ||
7 | export KDECONFDIR=/etc | ||
8 | |||
9 | # fixes some compile issues ala "kde-config: command not found" | ||
10 | export PATH="${KDEDIR}/bin:${PATH}" | ||
11 | export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${KDEDIR}/$(mlibdir)/pkgconfig | ||
12 | |||
13 | # if kde is already installed it may fuck up the build process because it | ||
14 | # try to use the wrong docp etc. | ||
15 | # so we prevent this: | ||
16 | export KDEDIRS=${KDEDIR} | ||
17 | |||
18 | niro | 1925 | kde3_configure() |
19 | { | ||
20 | niro | 2 | local configure_opts |
21 | |||
22 | # use --enable-final only on i*86 | ||
23 | [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --enable-final" | ||
24 | |||
25 | # enable dependency tracking only on x86_64 | ||
26 | [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --disable-dependency-tracking" | ||
27 | [[ ${ARCH} = x86_64 ]] && configure_opts="${configure_opts} --enable-dependency-tracking" | ||
28 | |||
29 | # force libdir suffix on 64bit arches to fix multilib builds | ||
30 | [[ $(mlibdir) != "lib" ]] && configure_opts="${configure_opts} --enable-libsuffix=$(mlibdir | sed s/lib//)" | ||
31 | |||
32 | # add commandline given arguments | ||
33 | configure_opts="${configure_opts} $@" | ||
34 | |||
35 | # ${JAVA_HOME} is a provided sys-var by the jdk packages | ||
36 | ./configure \ | ||
37 | --host=${CHOST} \ | ||
38 | --prefix=${KDEDIR} \ | ||
39 | --sysconfdir=${KDECONFDIR} \ | ||
40 | --infodir=${KDEDIR}/share/info \ | ||
41 | --mandir=${KDEDIR}/share/man \ | ||
42 | --libdir=${KDEDIR}/$(mlibdir) \ | ||
43 | --with-x \ | ||
44 | --enable-mitshm \ | ||
45 | --with-xinerama \ | ||
46 | --enable-mt \ | ||
47 | --disable-debug \ | ||
48 | ${configure_opts} \ | ||
49 | || die | ||
50 | #--with-qt-dir=${QTDIR} \ | ||
51 | } | ||
52 | |||
53 | kde3_src_prepare() | ||
54 | { | ||
55 | munpack ${SRCFILE} || die | ||
56 | } | ||
57 | |||
58 | kde3_src_compile() | ||
59 | { | ||
60 | cd ${SRCDIR} | ||
61 | kde3_configure || die | ||
62 | mmake || die | ||
63 | } | ||
64 | |||
65 | niro | 1925 | kde3_src_install() |
66 | { | ||
67 | niro | 2 | cd ${SRCDIR} |
68 | |||
69 | mmake DESTDIR=${BINDIR} ${KDE3_MAKE_OPTS} install || die | ||
70 | |||
71 | local i | ||
72 | for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ | ||
73 | FAQ LICENSE NEWS README TODO | ||
74 | do | ||
75 | if [ -f ${SRCDIR}/${i} ] | ||
76 | then | ||
77 | minstalldocs ${i} || die | ||
78 | fi | ||
79 | done | ||
80 | } | ||
81 | |||
82 | export_inherits kde3 src_prepare src_compile src_install |