# Description: Graphics utilities for the KDE integrated X11 desktop # URL: http://www.kde.org # Maintainer: sten, nick dot steeves at shaw dot ca # Packager: # Depends on: kdebase, imagemagick, tetex, fribidi, sane, libgphoto2, freeglut name=kdegraphics version=3.5.0 release=2 source=(http://download.kde.org/stable/3.5/src/$name-$version.tar.bz2 ftp://ftp.kde.org/pub/kde/security_patches/post-3.5.0-kdegraphics-CAN-2005-3193.diff svgdisplay.desktop) build() { cd $name-$version ( cd kpdf/xpdf/xpdf/ patch -p0 < $SRC/post-3.5.0-kdegraphics-CAN-2005-3193.diff ) # Nvidia hack NVIDIAINCLUDES=/usr/include/nvidia if [ -d $NVIDIAINCLUDES ]; then sed -i -e "s|^DEFS.*|DEFS = -I$NVIDIAINCLUDES @DEFS@|g" kpovmodeler/Makefile.in fi ./configure --prefix=/usr \ --enable-multithreaded-kpdf \ --disable-dependency-tracking \ --disable-debug \ --enable-final make make DESTDIR=$PKG install rm -rf $PKG/usr/share/doc mkdir -p $PKG/usr/share/texmf/tex/kdvi cp doc/kdvi/*.sty $PKG/usr/share/texmf/tex/kdvi install -D ../svgdisplay.desktop \ $PKG/usr/share/applnk/.hidden/svgdisplay.desktop }