summaryrefslogtreecommitdiff
blob: 0adf5b25bcca3bcd4ec6d11479b20d7c66eba0ef (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xvidcap/xvidcap-1.1.5_rc1.ebuild,v 1.1 2007/02/24 16:54:03 drac Exp $

MY_PV="${PV/_/}"

DESCRIPTION="Screen capture utility enabling you to create videos of your desktop for illustration or documentation purposes."
HOMEPAGE="http://xvidcap.sourceforge.net/"
SRC_URI="mirror://sourceforge/xvidcap/${PN}-${MY_PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

RDEPEND="x11-libs/libXmu
	x11-libs/libXfixes
	x11-libs/libXdamage
	x11-libs/libICE
	media-libs/libpng
	media-libs/jpeg
	sys-libs/zlib
	>=x11-libs/gtk+-2.4
	media-sound/lame"
DEPEND="${RDEPEND}
	dev-util/pkgconfig
	dev-util/intltool
	app-text/scrollkeeper
	app-text/docbook2X
	app-text/gnome-doc-utils
	sys-devel/gettext"

S="${WORKDIR}/${PN}-${MY_PV}"

src_compile() {
	econf --with-forced-embedded-ffmpeg
	emake || die "emake failed."
}

src_install() {
	emake DESTDIR="${D}" install || "emake install failed."

	# Almost like bug #58322 but directory name changed.
	rm -fr "${D}"/usr/share/doc/${PN}
	dodoc AUTHORS ChangeLog NEWS README TODO.tasks
}