# $Id$ PNAME="kdelibs" PVER="3.5.10" PBUILD="r3" PCATEGORIE="kde-base" STATE="unstable" DESCRIPTION="KDE core libraries." HOMEPAGE="http://www.kde.org/" DEPEND=">= app-arch/bzip2-1.0.5 >= dev-libs/libxslt-1.1.24 >= dev-libs/libxml2-2.7 >= dev-libs/libpcre-7.9 >= dev-libs/openssl-0.9.8 >= media-libs/alsa-lib-1.0.19 >= net-print/cups-1.3 >= media-libs/libtiff-3.8 >= app-admin/fam-2.7.0 >= app-text/ghostscript-esp-8.15 >= media-libs/libart_lgpl-2.3.20 >= kde-base/arts-${PVER/3/1} >= x11-libs/qt-3.3.8 >= net-dns/libidn-1.14 >= app-text/aspell-0.60 >= net-dns/avahi-qt3-0.6.25 >= kde-base/kde-env-${PVER}" SDEPEND=">= sys-dev/automake-3 >= sys-dev/autoconf-4 >= sys-dev/gettext-0.17" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude kde3 SRC_URI=( kde://${PVER}/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-3.5.8-xinerama-improvements.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-flock-redefinition.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # improved xinerama support (see http://ktown.kde.org/~seli/xinerama/) mpatch ${PNAME}-3.5.8-xinerama-improvements.patch || die # fix compilation with gcc-4.3 and newer linux-headers mpatch ${PNAME}-${PVER}-fix-flock-redefinition.patch || die } src_compile() { cd ${SRCDIR} # enable fast-malloc only on i*86 local my_opts="--disable-fast-malloc" # now always disabled; doesn't work with >=glib2-2.9.1 correctly # http://linuxfromscratch.org/pipermail/blfs-support/2006-May/059637.html # #[[ ${ARCH} = i*86 ]] && my_opts=--enable-fast-malloc=full # --disable-dnssd to enable avahi kde3_configure \ --with-distribution=Magellan \ --with-ssl-dir=/usr \ --with-alsa \ --with-arts \ --enable-libfam \ --enable-dnotify \ --enable-cups \ --enable-aspell \ --enable-dnssd \ ${my_opts} \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories install -d ${BINDIR}/etc/xdg/kde || die mmake DESTDIR=${BINDIR} install || die # fix freedesktop menu structure # move them to /etc/xdg/kde to prevent broken gnome-menus mv ${BINDIR}/etc/xdg/menus ${BINDIR}/etc/xdg/kde || die } postinstall() { echo echo "To have full zeroconf support with kde," echo "make sure the avahi daemons are running." echo "Also multicast dns host lookups should be" echo "enabled in '/etc/nsswitch.conf'." echo "e.g: ipv6 'hosts: files mdns dns'" echo "or for ipv4 'hosts: files mdns4 dns'" echo }