# $Id$ PNAME="kdegraphics" PVER="3.5.10" PBUILD="r3" PCATEGORIE="kde-base" STATE="unstable" DESCRIPTION="KDE graphic oriented applications." HOMEPAGE="http://www.kde.org/" DEPEND=">= kde-base/kdebase-${PVER} >= media-gfx/gphoto2-2.4 >= media-gfx/sane-backends-1.0.20 >= dev-libs/fribidi-0.19.2 >= media-libs/imlib-1.9.14 >= app-text/ghostscript-esp-8.15 >= media-libs/libtiff-3.8 >= sys-libs/libieee1284-0.2.11 >= app-text/poppler-qt3-0.10.6" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude kde3 SRC_URI=( kde://${PVER}/src/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-ksvg-autotools.patch mirror://${PNAME}/${PNAME}-${PVER}-fribidi-includes.patch ) src_prepare() { munpack ${SRCFILE} cd ${SRCDIR} # fix missing fribidi-config, using *.pc instead # and allow use of newer autotools mpatch ${PNAME}-${PVER}-ksvg-autotools.patch || die # fix fribidi includes (fribidi >= 0.19) mpatch ${PNAME}-${PVER}-fribidi-includes.patch || die # rebuild all configure files make -f admin/Makefile.common || die } src_compile() { cd ${SRCDIR} kde3_configure \ --with-kamera \ --with-gphoto2-includes=/usr/include/gphoto2 \ --with-gphoto2-libraries=/usr/$(mlibdir)/gphoto2 \ --with-imlib \ --with-imlib-config=/usr/bin \ --with-poppler \ || die mmake || die }