# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 inherit base eutils autotools multilib MY_P=${P/-plugins/} DESCRIPTION="A minimalistic plugin API for video effects" HOMEPAGE="http://frei0r.dyne.org/" SRC_URI="ftp://ftp.dyne.org/frei0r/releases/${P}.tar.gz" RESTRICT="nomirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" IUSE="doc gavl opencv" RDEPEND="opencv? ( media-libs/opencv ) gavl? ( media-libs/gavl )" DEPEND="doc? ( app-doc/doxygen ) ${RDEPEND}" S="${WORKDIR}/${MY_P}" src_prepare() { epatch "${FILESDIR}"/${P}-no-automagic-deps.patch eautoreconf } src_configure() { econf $(use_enable opencv) \ $(use_enable gavl) \ --libdir=/usr/$(get_libdir) } src_compile() { base_src_compile use doc && cd doc && emake } src_install() { base_src_install dodoc AUTHORS ChangeLog README TODO use doc && dohtml doc/html/* }