summaryrefslogtreecommitdiff
blob: f47bd1e7974f1ef42d0dbac6d76618e11ffbf626 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"

inherit flag-o-matic

MY_P="LiVES-${PV}"
DESCRIPTION="LiVES is a Video Editing System"
HOMEPAGE="http://lives.sf.net"
SRC_URI="http://www.xs4all.nl/~salsaman/lives/current/${MY_P}.tar.bz2"
	# sf.net only has rpms for this version
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="matroska ogg theora libvisual nls" #sdl jack dv"
DEPEND=">=dev-lang/perl-5.8.0-r12
	>=dev-lang/python-2.3.4
	>=media-gfx/imagemagick-5.5.6
	>=media-libs/jpeg-6b-r3
	media-libs/libsdl
	media-sound/jack-audio-connection-kit
	>=media-sound/sox-12.17.3-r3
	>=media-video/ffmpeg-0.4.8
	>=media-video/mjpegtools-1.6.2
	>=media-video/mplayer-0.90-r2[encode]
	sys-libs/libavc1394
	>=x11-libs/gtk+-2.10:2
	virtual/cdrtools
	libvisual? ( media-libs/libvisual )"
RDEPEND="${DEPEND}
	matroska? ( media-video/mkvtoolnix
		media-libs/libmatroska )
	ogg? ( media-sound/ogmtools )
	theora? ( media-libs/libtheora )"

src_prepare() {
	# hardcoding -03 is wrong!
	sed -i -e "s:-O3::g" \
		"${S}"/{libweed,lives-plugins/{plugins/{decoders,playback/video},weed-plugins{,/gdk}},src}/Makefile.in || die
	epatch "${FILESDIR}"/${P}-fix-jackd-callback.patch
}

src_configure() {
	econf \
		--disable-static \
		$(use_enable libvisual) \
		$(use_enable nls)
}

src_install() {
	make DESTDIR="${D}" install || die
	dodoc AUTHORS FEATURES GETTING.STARTED NEWS || die
	# hack to circumvent bug #295293
	insinto /usr/bin
	dobin libOSC/sendOSC/sendOSC || die
}