summaryrefslogtreecommitdiff
blob: 36bc9cfe87050bae1efbd54d7993170be0748447 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Dan Armak <danarmak@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/media-video/transcode/transcode-0.6.0_pre4-r2.ebuild,v 1.1 2002/05/04 03:44:57 jhhudso Exp $

MY_P=${P/_/}
S=${WORKDIR}/${MY_P}
DESCRIPTION="video stream processing tool"
SRC_URI="http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode/pre/${MY_P}.tgz"
HOMEPAGE="http://www.theorie.physik.uni-goettingen.de/~ostreich/transcode"

# Note: transcode can use pretty much any media-related package ever written as
# a plugin. An exhaustive dep list would make me add about 20-30 packages to 
# portage. perhaps another time :-)

DEPEND=">=media-libs/a52dec-0.7.3
	media-libs/libdv
	media-libs/libsdl
	=x11-libs/gtk+-1.2*
	>=media-video/avifile-0.6
	dvd? ( media-libs/libdvdread )
	mpeg? ( media-libs/libmpeg3 )
	encode? ( >=media-sound/lame-3.89 )
	quicktime? ( media-libs/quicktime4linux )"

src_unpack() {
	unpack ${A}

	if [ "`gcc --version | cut -f1 -d.`" = "3" ];
	then
		patch -p0 < ${FILESDIR}/transcode-0.6.0_pre4.diff
	fi
}

src_compile() {

	local myconf
	
	use encode \
		&& myconf="${myconf} --with-lame" \
		|| myconf="${myconf} --without-lame"
	
	use mpeg \
		&& myconf="${myconf} --with-libmpeg3" \
		|| myconf="${myconf} --without-libmpeg3"
	
	econf ${myconf} || die

	emake all || die

}

src_install () {

	make \
		DESTDIR=${D} \
		install || die
}