forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ffmpeg2theora-0.29-r1.ebuild
51 lines (43 loc) · 1.11 KB
/
ffmpeg2theora-0.29-r1.ebuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils toolchain-funcs 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="kate"
RDEPEND="
|| ( media-video/ffmpeg:0 media-libs/libpostproc <media-video/libav-0.8.2-r1 )
>=virtual/ffmpeg-0.10
>=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"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-swr.patch \
"${FILESDIR}"/${P}-ffmpeg2.patch \
"${FILESDIR}"/${P}-underlinking.patch
}
src_configure() {
myesconsargs=(
APPEND_CCFLAGS="${CFLAGS}"
APPEND_LINKFLAGS="${LDFLAGS}"
prefix=/usr
mandir=PREFIX/share/man
libkate=$(usex kate 1 0)
)
}
src_compile() {
escons
}
src_install() {
escons destdir="${D}" install
dodoc AUTHORS ChangeLog README subtitles.txt TODO
}