# $Id: speex-1.2_rc1-r2.smage2 3571 2009-10-26 15:22:17Z niro $ PNAME="speex" PVER="1.2_rc1" PBUILD="r3" PCATEGORIE="media-libs" STATE="unstable" 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.2" SRCFILE="${PNAME}-${PVER/_/}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" sminclude mbuild multilib SRC_URI=( http://downloads.xiph.org/releases/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd 'http://downloads.xiph.org/releases/${PNAME}/?C=M;O=A' | lasttarball 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 all-abis autoreconf --force --install --verbose || die # fix libtool issues mlibtoolize || die } src_install() { mmake DESTDIR=${BINDIR} install || die # fix wrong doc location rm -rf ${BINDIR}/usr/share/doc/* || die minstalldocs AUTHORS COPYING ChangeLog NEWS README TODO doc/manual.pdf || die }