blob: 259e083b65743d579246f328c49405ba9cf2ac19 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
DESCRIPTION="Film-Quality Vector Animation (core engine)"
HOMEPAGE="http://www.synfig.com/"
SRC_URI="mirror://gentoo/$PF.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc dv ffmpeg fontconfig imagemagick jpeg png tiff truetype openexr"
DEPEND=">=dev-cpp/ETL-${PV}
>=dev-libs/libsigc++-2.0.0
>=dev-cpp/libxmlpp-2.6.1
sys-devel/libtool
doc? ( app-doc/doxygen )
png? ( media-libs/libpng )
tiff? ( media-libs/tiff )
jpeg? ( media-libs/jpeg )
truetype? ( >=media-libs/freetype-2.1.9 )
fontconfig? ( media-libs/fontconfig )
dv? ( media-libs/libdv )
imagemagick? ( media-gfx/imagemagick )
openexr? ( media-libs/openexr )
ffmpeg? ( media-video/ffmpeg )"
src_compile() {
./bootstrap || die 'Bootstrap failed.'
econf \
$(use_with ffmpeg) \
$(use_with dv libdv) \
$(use_with imagemagick) \
--without-libavcodec \
$(use_with fontconfig) \
$(use_with truetype freetype) \
$(use_with openexr) \
$(use_with debug) \
|| die 'Configure failed.'
emake || die 'Make failed.'
if use doc; then
emake docs || die "make docs failed."
fi
}
src_install() {
emake DESTDIR="${D}" install || die 'Install failed!'
dodoc doc/*.txt
if use doc; then
dohtml doc/html/*
fi
insinto "/usr/share/${PN}/examples"
doins examples/*.sif
insinto "/usr/share/${PN}/examples/walk"
doins examples/walk/*
}
|