# $Id$ PNAME="libtheora" PVER="1.1.1" PBUILD="r3" PCATEGORIE="media-libs" DESCRIPTION="Theora is a free and open video compression format." HOMEPAGE="http://www.theora.org/" DEPEND=">= media-libs/libogg-1.2 >= media-libs/libvorbis-1.3" SRCFILE="${PNAME}-${PVER/_/}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER/_/}" # enable linux32 emulation for x86_64 arches EMUL_LINUX_32=true sminclude multilib SRC_URI=( http://downloads.xiph.org/releases/${PNAME/lib/}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-1.0_beta2-cflags.patch ) UP2DATE="updatecmd 'http://downloads.xiph.org/releases/${PNAME/lib/}/?C=M;O=A' | lasttarball gz" src_prepare() { munpack ${SRCFILE} || die # force usage of our cflags mpatch ${PNAME}-1.0_beta2-cflags.patch || die all-abis 'rm ${SRCDIR}-${abi}/ltmain.sh || die' all-abis 'rm ${SRCDIR}-${abi}/aclocal.m4 || die' mlibtoolize --install --force --verbose || die export WANT_AUTOMAKE=1.10 mautoreconf --verbose --install --force -I m4 || die } src_compile() { # disable docs creation; needs doxygen export ac_cv_prog_HAVE_DOXYGEN="false" mconfigure \ --enable-encode \ --disable-dependency-tracking \ --disable-examples \ --disable-sdltest \ || die mmake || die } src_install() { # fix docdir minstall_destdir docdir="usr/share/doc/${PNAME}-${PVER}" || die minstalldocs AUTHORS CHANGES COPYING LICENSE README || die }