blob: 551c348002dd6cd8179c8750c27285b75b748505 (
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
87
88
89
90
91
92
93
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
inherit clutter
DESCRIPTION="Clutter is a library for creating graphical user interfaces"
SLOT="1.0"
KEYWORDS="~amd64 ~ppc64 ~x86"
IUSE="debug doc +gtk +introspection"
# NOTE: glx flavour uses libdrm + >=mesa-7.3
RDEPEND=">=dev-libs/glib-2.26
>=x11-libs/cairo-1.10
>=x11-libs/pango-1.20[introspection?]
>=dev-libs/json-glib-0.12[introspection?]
>=dev-libs/atk-1.7
virtual/opengl
x11-libs/libdrm
x11-libs/libX11
x11-libs/libXext
x11-libs/libXdamage
x11-libs/libXi
x11-proto/inputproto
>=x11-libs/libXfixes-3
>=x11-libs/libXcomposite-0.4
gtk? ( || (
x11-libs/gdk-pixbuf
>=x11-libs/gtk+-2.0 ) )
introspection? ( >=dev-libs/gobject-introspection-0.9.6 )
"
DEPEND="${RDEPEND}
sys-devel/gettext
dev-util/pkgconfig
>=dev-util/gtk-doc-am-1.13
doc? (
>=dev-util/gtk-doc-1.13
>=app-text/docbook-sgml-utils-0.6.14[jadetex]
dev-libs/libxslt )
"
src_prepare() {
epatch ${FILESDIR}/${PN}-9999-perfneu1.patch
epatch ${FILESDIR}/${PN}-9999-perfneu2.patch
epatch ${FILESDIR}/${PN}-9999-perfneu3.patch
epatch ${FILESDIR}/${PN}-9999-perfneu4.patch
epatch ${FILESDIR}/${PN}-9999-perfneu5.patch
epatch ${FILESDIR}/${PN}-9999-perfneu6.patch
}
src_configure() {
# We only need conformance tests, the rest are useless for us
# sed -e 's/^\(SUBDIRS =\).*/\1/g' \
# -i tests/Makefile.{am,in} || die "tests sed failed"
# XXX: Conformance test suite (and clutter itself) does not work under Xvfb
# XXX: Profiling, coverage disabled for now
# XXX: What do we do about eglx/eglnative/opengl-egl-xlib/osx/etc flavours?
local myconf="
--enable-debug=minimum
--enable-cogl-debug=minimum
--enable-conformance=no
--disable-gcov
--enable-profile=no
--enable-maintainer-flags=no
--enable-xinput
--with-flavour=glx
--with-imagebackend=gdk-pixbuf
$(use_enable introspection)
$(use_enable doc docs)"
if ! use gtk; then
myconf="${myconf} --with-imagebackend=internal"
# Internal image backend is experimental
ewarn "You have selected the experimental internal image backend"
fi
if use debug; then
myconf="${myconf}
--enable-debug=yes
--enable-cogl-debug=yes"
fi
touch ${S}/TODO
econf ${myconf}
}
|