blob: a2772ab26f3b3efda3afc414369969ff1535ebbb (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/kino/kino-1.0.0.ebuild,v 1.8 2007/05/01 11:04:37 corsair Exp $
DESCRIPTION="Kino is a non-linear DV editor for GNU/Linux"
HOMEPAGE="http://www.kinodv.org/"
SRC_URI="mirror://sourceforge/kino/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86"
IUSE="alsa dvdr quicktime sox vorbis"
DEPEND=">=x11-libs/gtk+-2.6.0
>=gnome-base/libglade-2.5.0
>=dev-libs/glib-2
x11-libs/libXv
dev-libs/libxml2
media-libs/audiofile
>=sys-libs/libraw1394-1.0.0
>=sys-libs/libavc1394-0.4.1
>=media-libs/libdv-0.103
media-libs/libsamplerate
!sparc? ( media-libs/libiec61883 )
alsa? ( >=media-libs/alsa-lib-1.0.9 )
>=media-video/ffmpeg-0.4.9_p20061016
quicktime? ( || ( >=media-libs/libquicktime-0.9.5 media-video/cinelerra-cvs ) )"
RDEPEND="${DEPEND}
media-video/mjpegtools
media-sound/rawrec
dvdr? ( media-video/dvdauthor
app-cdr/dvd+rw-tools )
sox? ( media-sound/sox )
vorbis? ( media-sound/vorbis-tools )"
src_unpack() {
unpack ${A}
cd ${S}
# Fix to link with --as-needed
sed -i -e 's:LIBS="-lXext:LIBS="-lXext -lX11:' configure || die "sed failed!"
# Deactivating automagic alsa configuration, bug #134725
if ! use alsa ; then
sed -i -e "s:HAVE_ALSA 1:HAVE_ALSA 0:" configure || die "sed failed!"
fi
# Fix bug #169590
sed -i \
-e '/\$(LIBQUICKTIME_LIBS) \\/d' \
-e '/^[[:space:]]*\$(SRC_LIBS)/ a\
\$(LIBQUICKTIME_LIBS) \\' \
src/Makefile.in
# Fix bug #172687
sed -i \
-e 's/^install-exec-local:/install-exec-local: install-binPROGRAMS/' \
src/Makefile.in
}
src_compile() {
econf \
--disable-dependency-tracking \
--disable-debug \
--disable-local-ffmpeg \
$(use_enable quicktime) \
$(use_with sparc dv1394) \
|| die "Configuration failed"
emake || die "Compilation failed"
}
src_install() {
emake DESTDIR=${D} install || die "Installation failed"
dodoc AUTHORS BUGS ChangeLog NEWS README* TODO
}
|