Contents of /branches/R11-stable/include/kde3.sminc
Parent Directory | Revision Log
Revision 19316 -
(show annotations)
(download)
Tue Sep 3 15:52:00 2013 UTC (11 years, 2 months ago) by niro
File size: 2313 byte(s)
Tue Sep 3 15:52:00 2013 UTC (11 years, 2 months ago) by niro
File size: 2313 byte(s)
-revert last commit
1 | # $Id$ |
2 | |
3 | sminclude qt3 |
4 | |
5 | ## some global vars ## |
6 | export KDEDIR=/opt/kde3 |
7 | export KDECONFDIR=/etc/kde3 |
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 | # the configure checks for kconfig_compiler do not respect PATH |
19 | export KCONFIG_COMPILER="${KDEDIR}/bin/kconfig_compiler" |
20 | |
21 | # autoconf-2.64 breaks the buildsystem of kde3.5 |
22 | # see: http://blog.flameeyes.eu/2009/07/28/having-fun-with-autoconf-2-64 |
23 | # and: https://bugs.gentoo.org/show_bug.cgi?id=279482 |
24 | # suggested workarounds are not working, so we call autoconf-2.63 here: |
25 | export WANT_AUTOCONF="2.63" |
26 | |
27 | kde3_configure() |
28 | { |
29 | local configure_opts |
30 | |
31 | # use --enable-final only on i*86 |
32 | [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --enable-final" |
33 | |
34 | # enable dependency tracking only on x86_64 |
35 | [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --disable-dependency-tracking" |
36 | [[ ${ARCH} = x86_64 ]] && configure_opts="${configure_opts} --enable-dependency-tracking" |
37 | |
38 | # force libdir suffix on 64bit arches to fix multilib builds |
39 | [[ $(mlibdir) != "lib" ]] && configure_opts="${configure_opts} --enable-libsuffix=$(mlibdir | sed s/lib//)" |
40 | |
41 | # add commandline given arguments |
42 | configure_opts="${configure_opts} $@" |
43 | |
44 | # ${JAVA_HOME} is a provided sys-var by the jdk packages |
45 | ./configure \ |
46 | --host=${CHOST} \ |
47 | --prefix=${KDEDIR} \ |
48 | --sysconfdir=${KDECONFDIR} \ |
49 | --infodir=${KDEDIR}/share/info \ |
50 | --mandir=${KDEDIR}/share/man \ |
51 | --libdir=${KDEDIR}/$(mlibdir) \ |
52 | --with-x \ |
53 | --enable-mitshm \ |
54 | --with-xinerama \ |
55 | --enable-mt \ |
56 | --disable-debug \ |
57 | ${configure_opts} \ |
58 | || die |
59 | #--with-qt-dir=${QTDIR} \ |
60 | } |
61 | |
62 | kde3_src_prepare() |
63 | { |
64 | munpack ${SRCFILE} || die |
65 | } |
66 | |
67 | kde3_src_compile() |
68 | { |
69 | cd ${SRCDIR} |
70 | kde3_configure || die |
71 | mmake || die |
72 | } |
73 | |
74 | kde3_src_install() |
75 | { |
76 | cd ${SRCDIR} |
77 | |
78 | mmake DESTDIR=${BINDIR} ${KDE3_MAKE_OPTS} install || die |
79 | |
80 | local i |
81 | for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ |
82 | FAQ LICENSE NEWS README TODO |
83 | do |
84 | if [ -f ${SRCDIR}/${i} ] |
85 | then |
86 | minstalldocs ${i} || die |
87 | fi |
88 | done |
89 | } |
90 | |
91 | export_inherits kde3 src_prepare src_compile src_install |