You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-emulation/emul-linux-x86-opengl/emul-linux-x86-opengl-20121...

34 lines
1001 B

# Copyright 1999-2013 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-20121202-r1.ebuild,v 1.3 2013/02/24 23:28:36 pacho Exp $
EAPI=5
inherit emul-linux-x86
LICENSE="BSD MIT LGPL-3 SGI-B-2.0"
KEYWORDS="-* amd64 ~amd64-linux"
# https://bugs.gentoo.org/show_bug.cgi?id=445712
SRC_URI="${SRC_URI} https://dev.gentoo.org/~pacho/emul-linux-x86-${PV}/glu-9.0.0.tbz2"
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_prepare() {
emul-linux-x86_src_prepare
rm -f "${S}/usr/lib32/libGL.so" || die
rm -f "${S}/usr/lib32/libGL.so.1" || die
rm -rf "${S}/usr/include" || die
}
pkg_postinst() {
# Update GL symlinks
eselect opengl set --use-old || die
# And the same for mesa (bug #355393)
eselect mesa set 32bit --auto || die
}