blob: 59ccdbab5b79a820455c6d5d28ef1290680f6298 (
plain)
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
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xvidcap/xvidcap-1.1.7.ebuild,v 1.4 2010/02/02 19:10:59 ssuominen Exp $
GCONF_DEBUG=no
inherit eutils autotools gnome2
MY_P=${P/_rc/rc}
DESCRIPTION="Screen capture utility to create videos of your desktop for documentation purposes"
HOMEPAGE="http://xvidcap.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="mp3 theora"
RDEPEND=">=x11-libs/gtk+-2.6
gnome-base/libglade
>=media-video/ffmpeg-0.4.9_p20080326
mp3? ( media-sound/lame )
theora? ( media-libs/libtheora )"
DEPEND="${RDEPEND}
>=x11-proto/xextproto-7.1.1
dev-util/pkgconfig
dev-util/intltool
virtual/libintl
app-text/scrollkeeper
dev-perl/XML-Parser
app-text/gnome-doc-utils"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-shmproto.patch
epatch "${FILESDIR}"/${P}-ffmpeg-headers.patch
# bug 242680
epatch "${FILESDIR}"/${P}-ffmpeg-trellis.patch
epatch "${FILESDIR}"/${P}-avutil.patch
eautoreconf
# bug 242678
intltoolize --force || die "intltoolize failed"
}
src_compile() {
econf --without-forced-embedded-ffmpeg \
$(use_enable mp3 libmp3lame) \
$(use_enable theora libtheora)
emake || die "emake failed."
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed."
# Almost like bug #58322 but directory name changed.
rm -rf "${D}"/usr/share/doc/${PN}
dodoc AUTHORS ChangeLog README TODO.tasks
# Optional. See also bug 232590.
elog "For previewing the captured movie you should install media-video/mplayer"
}
|