summaryrefslogtreecommitdiff
blob: 5f72da655fedc3b8f47ffe3b0e5fbdd837562e58 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/tcvp/tcvp-0.2.0.ebuild,v 1.5 2004/06/10 07:43:45 dholm Exp $

DESCRIPTION="A modular player and encoder/transcoder for music and video."
HOMEPAGE="http://tcvp.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

SLOT="0"
LICENSE="MIT"
KEYWORDS="~x86 ~ppc"

IUSE="faad mpeg mad alsa dvd encode ffmpeg oggvorbis oss"

DEPEND=">=dev-libs/libtc-1.1.0
	>=dev-libs/tc2-0.6.0
	>=dev-libs/tc2-modules-0.6.0
	>=media-libs/a52dec-0.7.4
	>=media-sound/cdparanoia-3.9.8-r1
	>=sys-apps/file-4.0
	faad? ( media-libs/faad2 )
	alsa? ( >=media-libs/alsa-lib-1.0.3b-r2 )
	dvd? ( >=media-libs/libdvdnav-0.1.9 )
	encode? ( >=media-libs/faac-1.23.5
		>=media-sound/lame-3.96 )
	ffmpeg? ( >=media-video/ffmpeg-0.4.8 )
	mad? ( >=media-sound/madplay-0.15.2b )
	mpeg? ( >=media-libs/libmpeg2-0.4.0b )
	oggvorbis? ( >=media-libs/libogg-1.1
		>=media-libs/libvorbis-1.0.1-r2 )"

src_compile() {
	local myconf
	myconf="--with-gnu-ld"
	use alsa || myconf="${myconf} --disable-alsa"
	use dvd || myconf="${myconf} --disable-dvd"
	use encode || myconf="${myconf} --disable-lame --disable-aac_enc"
	use ffmpeg || myconf="${myconf} --disable-avcodec --disable-avformat --disable-avimage --disable-scale"
	use mad || myconf="${myconf} --disable-mad"
	use mpeg || myconf="${myconf} --disable-mpeg2"
	use oggvorbis || myconf="${myconf} --disable-ogg --disable-vorbis"
	use oss || myconf="${myconf} --disable-oss"
	econf ${myconf} || die "configure failed"
	make || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc AUTHORS ChangeLog COPYING
}