# $Id$ PNAME="speexdsp" PVER="1.2_rc3" PBUILD="r1" PCAT="media-libs" DESCRIPTION="A voice compression format (DSP) for Speex." HOMEPAGE="http://www.speex.org/" DEPEND=">= virtual/glibc" SRCFILE="${PNAME}-${PVER/_/}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" sminclude mbuild mtools multilib SRC_URI=( http://downloads.xiph.org/releases/speex/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-fixbuilds-774c87d.patch ) UP2DATE="updatecmd http://downloads.xiph.org/releases/speex | grep '${PNAME}-[0-9]' | highesttarball gz | sed 's:rc:_&:'" src_prepare() { munpack ${SRCFILE} || die # fix build mpatch ${PNAME}-fixbuilds-774c87d.patch || die } src_install() { mmake DESTDIR=${BINDIR} install || die # fix wrong doc location mdelete -r /usr/share/doc || die minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO doc/manual.pdf || die }