Magellan Linux

Contents of /branches/magellan-next/include/kde3.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3721 - (show annotations) (download)
Sat Oct 31 12:30:31 2009 UTC (15 years ago) by niro
Original Path: trunk/core/include/kde3.sminc
File size: 2026 byte(s)
-set KCONFIG_COMPILER to repect the kdepathes
1 # $Id$
2
3 sminclude qt3
4
5 ## 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 # the configure checks for kconfig_compiler do not respect PATH
19 export KCONFIG_COMPILER="${KDEDIR}/bin/kconfig_compiler"
20
21 kde3_configure()
22 {
23 local configure_opts
24
25 # use --enable-final only on i*86
26 [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --enable-final"
27
28 # enable dependency tracking only on x86_64
29 [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --disable-dependency-tracking"
30 [[ ${ARCH} = x86_64 ]] && configure_opts="${configure_opts} --enable-dependency-tracking"
31
32 # force libdir suffix on 64bit arches to fix multilib builds
33 [[ $(mlibdir) != "lib" ]] && configure_opts="${configure_opts} --enable-libsuffix=$(mlibdir | sed s/lib//)"
34
35 # add commandline given arguments
36 configure_opts="${configure_opts} $@"
37
38 # ${JAVA_HOME} is a provided sys-var by the jdk packages
39 ./configure \
40 --host=${CHOST} \
41 --prefix=${KDEDIR} \
42 --sysconfdir=${KDECONFDIR} \
43 --infodir=${KDEDIR}/share/info \
44 --mandir=${KDEDIR}/share/man \
45 --libdir=${KDEDIR}/$(mlibdir) \
46 --with-x \
47 --enable-mitshm \
48 --with-xinerama \
49 --enable-mt \
50 --disable-debug \
51 ${configure_opts} \
52 || die
53 #--with-qt-dir=${QTDIR} \
54 }
55
56 kde3_src_prepare()
57 {
58 munpack ${SRCFILE} || die
59 }
60
61 kde3_src_compile()
62 {
63 cd ${SRCDIR}
64 kde3_configure || die
65 mmake || die
66 }
67
68 kde3_src_install()
69 {
70 cd ${SRCDIR}
71
72 mmake DESTDIR=${BINDIR} ${KDE3_MAKE_OPTS} install || die
73
74 local i
75 for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
76 FAQ LICENSE NEWS README TODO
77 do
78 if [ -f ${SRCDIR}/${i} ]
79 then
80 minstalldocs ${i} || die
81 fi
82 done
83 }
84
85 export_inherits kde3 src_prepare src_compile src_install