blob: e479ceaedd9ecfe09f50c25698a0d6e20c2f8129 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/gtkglext/gtkglext-1.0.6-r3.ebuild,v 1.3 2006/02/01 15:55:53 gustavoz Exp $
inherit gnome2 autotools
DESCRIPTION="GL extensions for Gtk+ 2.0"
HOMEPAGE="http://gtkglext.sourceforge.net/"
LICENSE="GPL-2 LGPL-2.1"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
SLOT="0"
IUSE="doc"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc sparc x86"
RDEPEND=">=dev-libs/glib-2
>=x11-libs/gtk+-2
>=x11-libs/pango-1
virtual/glu
virtual/opengl"
DEPEND="${RDEPEND}
doc? ( >=dev-util/gtk-doc-0.10 )
>=x11-base/opengl-update-1.5
dev-util/pkgconfig"
DOCS="AUTHORS COPYING* ChangeLog* INSTALL NEWS README* TODO"
# gtkglext doesn't build with some (faulty) nvidia drivers headers
# this makes it always switch to x11 headers during install
# foser <foser@gentoo.org>
pkg_setup () {
# Set up X11 implementation
X11_IMPLEM_P="$(best_version virtual/x11)"
X11_IMPLEM="${X11_IMPLEM_P%-[0-9]*}"
X11_IMPLEM="${X11_IMPLEM##*\/}"
einfo "X11 implementation is ${X11_IMPLEM}."
GL_IMPLEM=$(opengl-update --get-implementation)
opengl-update ${X11_IMPLEM}
}
src_unpack() {
unpack ${A}
cd ${S}
# Apply a patch to correctly link gtkglext against
# pangox, (bug #105493). <obz@gentoo.org>
epatch ${FILESDIR}/${P}-pangox.patch
eautoconf
}
pkg_postinst () {
opengl-update ${GL_IMPLEM}
}
|