blob: d1ca5b191b642a1b3e5bad94ab096a1024ba5300 (
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
62
63
64
65
66
67
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/lve/lve-040322.ebuild,v 1.6 2004/07/11 07:33:28 morfic Exp $
inherit eutils gcc
# This is the version of ffmpeg lve must currently be compiled against
FFMPEG="ffmpeg-0.4.8"
PDATE=20${PV##*.}
DESCRIPTION="Linux Video Editor"
HOMEPAGE="http://lvempeg.sourceforge.net"
SRC_URI="http://heanet.dl.sourceforge.net/sourceforge/lvempeg/lve-040322.src.tar.bz2
http://download.videolan.org/pub/videolan/vlc/0.7.1/contrib/ffmpeg-${PDATE}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE=""
KEYWORDS="~x86 ~ppc"
DEPEND="virtual/x11
>=media-libs/libsdl-1.2.6-r3
>=x11-libs/qt-3.3.0-r1"
src_unpack() {
unpack ${AA}
# Patch to change location of qt library
epatch ${FILESDIR}/${PV}-qtlib.patch
# Patch to change LIB and BIN paths
epatch ${FILESDIR}/${PV}-lve.patch
cd ${WORKDIR}/lve
rm ffmpeg
ln -s ../ffmpeg-20040322 ffmpeg
if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ]
then
einfo "Compiler used: gcc-3.4.x Applying patch conditionally."
sed -i "s:(T_REGION \*):T_REGION \*:" src/region.c || die "Source couldnt be fixed"
cd ffmpeg
epatch ${FILESDIR}/0.4.8-gcc3.4-magicF2W.patch
cd ${WORKDIR}/lve
fi
}
src_compile() {
cd ${WORKDIR}/lve
make || die
}
src_install() {
# Install bitmaps
dodir /usr/share/pixmaps/lve
insinto /usr/share/pixmaps/lve
doins ${WORKDIR}/lve/lib/*
# Install binaries
dodir /usr/bin
insopts -m0755
insinto /usr/bin
doins ${WORKDIR}/lve/bin/*
doins ${WORKDIR}/lve/qdir/qdir
}
|