# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils autotools MY_P="${P}_src" DESCRIPTION="A cross-platform wrapper library around FFmpeg, which deals with file formats FFmpeg has problems with" HOMEPAGE="http://code.google.com/p/ffmpegsource/" SRC_URI="http://ffmpegsource.googlecode.com/files/${MY_P}.7z" LICENSE="MIT" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="static" RDEPEND="virtual/ffmpeg" DEPEND="${RDEPEND} dev-util/pkgconfig app-arch/p7zip" S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}/${P}-compile-fix.patch" eautoreconf || die "eautoreconf failed" chmod +x "${S}"/configure } src_configure() { local myconf="" if ! use static ; then myconf="${myconf} --enable-static=no" fi econf \ --enable-shared \ ${myconf} } src_install() { emake DESTDIR="${D}" install || die "emake install failed" find "${D}" -name '*.la' -exec rm -f '{}' + }