# $Header: /magellan-cvs/smage/pstoedit/pstoedit-3.45-r2.smage2,v 1.1 2008/04/03 19:17:26 niro Exp $ PNAME="pstoedit" PVER="3.45" PBUILD="r2" PCATEGORIE="media-gfx" STATE="unstable" DESCRIPTION="pstoedit translates PostScript and PDF graphics into other vector formats." HOMEPAGE="http://www.pstoedit.net/pstoedit" DEPEND=">= sys-libs/zlib-1.2 >= media-libs/libemf-1.0 >= media-libs/libpng-1.2 >= media-libs/libexif-0.6 >= app-text/ghostscript-esp-8" SDEPEND=">= sys-apps/sed-4" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} sed -i "s/\-pedantic//" configure || die } src_compile() { cd ${SRCDIR} mconfigure \ --with-libemf-include=/usr/include/libEMF \ --without-libplot || die # does not like optimations >= -j1 mmake -j1 || die } src_install() { cd ${SRCDIR} make DESTDIR=${BINDIR} install || die minstallman doc/pstoedit.1 || die minstalldocs copying || die }