# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg2theora/ffmpeg2theora-0.28-r1.ebuild,v 1.7 2012/05/22 16:44:53 flameeyes Exp $ EAPI=4 inherit eutils scons-utils DESCRIPTION="A simple converter to create Ogg Theora files." HOMEPAGE="http://www.v2v.cc/~j/ffmpeg2theora/" SRC_URI="http://www.v2v.cc/~j/${PN}/downloads/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="amd64 ~ppc ~ppc64 ~sparc x86 ~x86-fbsd" IUSE="debug kate" RDEPEND="|| ( media-libs/libpostproc =virtual/ffmpeg-0.6.90 >=media-libs/libvorbis-1.1 >=media-libs/libogg-1.1 >=media-libs/libtheora-1.1[encode] kate? ( >=media-libs/libkate-0.3.7 )" DEPEND="${RDEPEND} virtual/pkgconfig" pkg_setup() { myesconsargs=( APPEND_CCFLAGS="${CFLAGS}" APPEND_LINKFLAGS="${LDFLAGS}" debug=$(usex debug 1 0) prefix=/usr mandir=PREFIX/share/man libkate=$(usex kate 1 0) ) } src_prepare() { epatch "${FILESDIR}"/${P}-ffmpeg-0.10.patch } src_compile() { escons } src_install() { escons destdir="${D}" install dodoc AUTHORS ChangeLog README subtitles.txt TODO }