summaryrefslogtreecommitdiff
blob: af4f50370c7b6415e452232189afaa8c33287540 (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
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20110129-r99.ebuild,v 1.2 2011/02/18 18:01:01 pacho Exp $

inherit emul-linux-x86

LICENSE="BSD LGPL-2 MIT kilgard"

SRC_URI="http://dev.gentoo.org/~pacho/emul/${P}-r99.tar.bz2"

KEYWORDS="-* ~amd64 ~amd64-linux"

DEPEND="app-admin/eselect-opengl
	>=app-admin/eselect-mesa-0.0.9"
RDEPEND=">=app-emulation/emul-linux-x86-xlibs-20100611
	!<app-emulation/emul-linux-x86-xlibs-20100611
	media-libs/mesa"

src_unpack() {
	emul-linux-x86_src_unpack
	rm -f "${S}/usr/lib32/libGL.so" || die
}

pkg_postinst() {
	# Update GL symlinks
	eselect opengl set --use-old
	# And the same for mesa (bug #355393)
	eselect mesa set 32bit --auto || die
}