# $Id$ PNAME="speex" PVER="1.2_rc2" PBUILD="r2" PCAT="media-libs" DESCRIPTION="Speex is an Open Source/Free Software patent-free audio compression format designed for speech." HOMEPAGE="http://www.speex.org/" DEPEND=">= virtual/glibc >= media-libs/libogg-1.3 >= media-libs/speexdsp-1.2" SRCFILE="${PNAME}-${PVER/_/}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" sminclude mbuild mtools multilib SRC_URI=( http://downloads.xiph.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://downloads.xiph.org/releases/${PNAME} | grep '${PNAME}-[0-9]' | highesttarball gz | sed 's:rc:_&:'" src_prepare() { munpack ${SRCFILE} || die # disable tests all-abis "sed -i 's:noinst_PROGRAMS:check_PROGRAMS:' libspeex/Makefile.am" || die # fix parallel make issues mautoreconf || 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 }