Magellan Linux

Contents of /trunk/include/kde3.sminc

Parent Directory Parent Directory | Revision Log Revision Log


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