# $Id$ sminclude qt3 ## some global vars ## export KDEDIR=/opt/kde3 export KDECONFDIR=/etc/kde3 # fixes some compile issues ala "kde-config: command not found" export PATH="${KDEDIR}/bin:${PATH}" export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${KDEDIR}/$(mlibdir)/pkgconfig # if kde is already installed it may fuck up the build process because it # try to use the wrong docp etc. # so we prevent this: export KDEDIRS=${KDEDIR} # the configure checks for kconfig_compiler do not respect PATH export KCONFIG_COMPILER="${KDEDIR}/bin/kconfig_compiler" # autoconf-2.64 breaks the buildsystem of kde3.5 # see: http://blog.flameeyes.eu/2009/07/28/having-fun-with-autoconf-2-64 # and: https://bugs.gentoo.org/show_bug.cgi?id=279482 # suggested workarounds are not working, so we call autoconf-2.63 here: export WANT_AUTOCONF="2.63" kde3_configure() { local configure_opts # use --enable-final only on i*86 [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --enable-final" # enable dependency tracking only on x86_64 [[ ${ARCH} = i*86 ]] && configure_opts="${configure_opts} --disable-dependency-tracking" [[ ${ARCH} = x86_64 ]] && configure_opts="${configure_opts} --enable-dependency-tracking" # force libdir suffix on 64bit arches to fix multilib builds [[ $(mlibdir) != "lib" ]] && configure_opts="${configure_opts} --enable-libsuffix=$(mlibdir | sed s/lib//)" # add commandline given arguments configure_opts="${configure_opts} $@" # ${JAVA_HOME} is a provided sys-var by the jdk packages ./configure \ --host=${CHOST} \ --prefix=${KDEDIR} \ --sysconfdir=${KDECONFDIR} \ --infodir=${KDEDIR}/share/info \ --mandir=${KDEDIR}/share/man \ --libdir=${KDEDIR}/$(mlibdir) \ --with-x \ --enable-mitshm \ --with-xinerama \ --enable-mt \ --disable-debug \ ${configure_opts} \ || die #--with-qt-dir=${QTDIR} \ } kde3_src_prepare() { munpack ${SRCFILE} || die } kde3_src_compile() { cd ${SRCDIR} kde3_configure || die mmake || die } kde3_src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} ${KDE3_MAKE_OPTS} install || die local i for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \ FAQ LICENSE NEWS README TODO do if [ -f ${SRCDIR}/${i} ] then minstalldocs ${i} || die fi done } export_inherits kde3 src_prepare src_compile src_install