summaryrefslogtreecommitdiff
blob: 4def4ecfc202a4306e0a0eff0c4e552b2c05f9d2 (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
79
80
81
82
83
84
85
86
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="4"

inherit eutils autotools

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="doc libvisual matroska nls ogg theora" #static-libs

RDEPEND=">=media-video/mplayer-0.90-r2[encode,jpeg,png]
	>=media-gfx/imagemagick-5.5.6[jpeg,png]
	>=dev-lang/perl-5.8.0-r12
	x11-libs/gtk+:3
	virtual/jpeg
	x11-libs/gdk-pixbuf
	media-sound/sox
	>=dev-lang/python-2.3.4
	media-libs/libsdl
	media-video/mjpegtools
	media-sound/jack-audio-connection-kit
	virtual/ffmpeg
	virtual/cdrtools
	sys-libs/libavc1394
	libvisual? ( media-libs/libvisual )
	matroska? ( media-video/mkvtoolnix
		media-libs/libmatroska )
	ogg? ( media-sound/ogmtools )
	theora? ( media-libs/libtheora )"
DEPEND="${RDEPEND}
	>=sys-devel/automake-1.7
	sys-devel/autoconf:2.5
	sys-devel/gettext
	|| (
		sys-devel/libtool:2
		sys-devel/libtool:1.5
	)
	doc? ( app-doc/doxygen )"

src_prepare() {
	epatch "${FILESDIR}"/${PN}-1.4.2-config_doxygen.patch
	#epatch "${FILESDIR}"/${PN}-1.6.0-fix-typo-callbacks.c.patch

	# Don't try to detect installed copies wrt #295293
	sed -i -e '/^PKG_CHECK_MODULES(WEED/s:true:false:' configure.in || die
	sed -i -e '/test/s:sendOSC:dIsAbLeAuToMaGiC:' \
		libOSC/sendOSC/Makefile.am || die

	# Use python 2.x as per reference in plugins
	sed -i \
		-e '/#!.*env/s:python:python2:' \
		lives-plugins/plugins/encoders/multi_encoder* \
		lives-plugins/marcos-encoders/lives_*_encoder* || die

	AT_M4DIR="mk/autoconf" eautoreconf
}

src_configure() {
		#$(use_enable static-libs static) \
	econf \
		-disable-static \
		$(use_enable libvisual) \
		$(use_enable nls) \
		$(use_enable doc doxygen)
}

src_install() {
	emake -j1 DESTDIR="${D}" install

	rm -f "${ED}"usr/bin/lives #384727
	dosym lives-exe /usr/bin/lives

	dodoc AUTHORS BUGS ChangeLog FEATURES GETTING.STARTED NEWS README

	find "${ED}"usr -name '*.la' -exec rm -f {} +
	rm -f "${ED}"usr/lib*/libweed-*.a
}