# $Header: /magellan-cvs/smage/autotrace/autotrace-0.31.1-r6.smage2,v 1.1 2008/08/15 12:54:32 niro Exp $ PNAME="autotrace" PVER="0.31.1" PBUILD="r6" PCATEGORIE="media-gfx" STATE="unstable" DESCRIPTION="autotrace converts bitmap to vector graphics." HOMEPAGE="http://autotrace.sourceforge.net/" DEPEND=">= x11-libs/gtkdps-0.3.4 >= media-libs/libexif-0.6 >= x11-libs/gtk1+-1.2.10 >= media-libs/libpng-1.2.26 >= media-gfx/imagemagick-6.4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-imagemagick.patch mirror://${PNAME}/${PNAME}-${PVER}-m4-missing.patch mirror://${PNAME}/${PNAME}-${PVER}-m4-underquoted.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix compilation with newer imagemagick mpatch ${PNAME}-imagemagick.patch || die # fix missing m4 includes (-Np1 is neccessary) mpatch -Np1 ${PNAME}-${PVER}-m4-missing.patch || die # fixes m4 warnings mpatch ${PNAME}-${PVER}-m4-underquoted.patch || die # rebuild configure autoreconf --install --force || die } src_compile() { cd ${SRCDIR} mconfigure --without-pstoedit || die mmake -j1 || die }