blob: b90f11bc42ef2db7b0317ead161dc05005ef7539 (
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
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2005 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.12 2005/07/28 14:21:48 caleb Exp $
inherit eutils toolchain-funcs qt3
# 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="mirror://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 ~amd64"
DEPEND="virtual/x11
>=media-libs/libsdl-1.2.6-r3
$(qt_min_version 3.3)
media-libs/libmpeg2"
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 config
cd src
make global_config
cd ..
sed -e "s:CFLAGS.*:CFLAGS = ${CFLAGS}:" \
-i src/global_config \
|| die "Could not patch in CFLAGS"
make CLFAGS="${CFLAGS}" || 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
}
|