blob: 255ff930c8a1f4c0510afcbf14f4d45e40233bef (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/compiz/compiz-0.5.0.ebuild,v 1.1 2007/04/24 01:51:02 hanno Exp $
inherit autotools multilib
DESCRIPTION="3D composite- and windowmanager"
HOMEPAGE="http://www.compiz.org/"
SRC_URI="http://xorg.freedesktop.org/archive/individual/app/${P}.tar.gz"
LICENSE="GPL-2 LGPL-2.1 MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbus fuse gnome gtk kde svg"
RESTRICT="mirror"
DEPEND=">=media-libs/mesa-6.5.1-r1
>=media-libs/glitz-0.5.6
>=x11-base/xorg-server-1.1.1-r1
x11-libs/libXdamage
x11-libs/libXrandr
x11-libs/libXcomposite
x11-libs/libXinerama
x11-proto/damageproto
media-libs/libpng
>=x11-libs/gtk+-2.0
x11-libs/startup-notification
gnome-base/gconf
gnome? ( >=x11-libs/libwnck-2.16.1
>=gnome-base/control-center-2.16.1 )
svg? ( gnome-base/librsvg )
dbus? ( >=sys-apps/dbus-1.0 )
kde? (
|| ( kde-base/kdebase kde-base/kwin )
dev-libs/dbus-qt3-old )
fuse? ( sys-fs/fuse )"
RDEPEND="${DEPEND}
x11-apps/mesa-progs
x11-apps/xvinfo"
src_compile() {
eautoreconf || die "eautoreconf failed"
intltoolize --copy --force || die "intltoolize failed"
glib-gettextize --copy --force || die "glib-gettextize failed"
econf \
--with-default-plugins \
$(use_enable gtk) \
$(use_enable gnome gconf) \
$(use_enable gnome) \
$(use_enable gnome metacity) \
$(use_enable kde) \
$(use_enable svg librsvg) \
$(use_enable dbus) \
$(use_enable dbus dbus-glib) \
$(use_enable fuse) || die
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dobin "${FILESDIR}/compiz-manager" || die "dobin failed"
# Create gentoo's config file
dodir /etc/xdg/compiz
cat <<- EOF > "${D}/etc/xdg/compiz/compiz-manager"
COMPIZ_BIN_PATH="/usr/bin/"
PLUGIN_PATH="/usr/$(get_libdir)/compiz/"
LIBGL_NVIDIA="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2"
LIBGL_FGLRX="/usr/$(get_libdir)/opengl/xorg-x11/libGL.so.1.2"
KWIN="`type -p kwin`"
METACITY="`type -p metacity`"
SKIP_CHECKS="yes"
EOF
dodoc AUTHORS ChangeLog NEWS README TODO || die "dodoc failed"
}
|