blob: f0e4ed9c10d1d1469afd10cef25b3234485968d2 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/emul-linux-x86-nvidia/emul-linux-x86-nvidia-1.0.6106.ebuild,v 1.4 2004/07/13 16:07:31 lv Exp $
inherit eutils
PKG="pkg2"
NV_V="${PV/1.0./1.0-}"
NV_PACKAGE="NVIDIA-Linux-x86_64-${NV_V}"
S="${WORKDIR}/${NV_PACKAGE}-${PKG}/usr/lib32"
DESCRIPTION="NVIDIA GLX 32-bit compatibility libraries"
HOMEPAGE="http://www.nvidia.com/"
SRC_URI="http://download.nvidia.com/XFree86/Linux-x86_64/${NV_V}/${NV_PACKAGE}-${PKG}.run"
LICENSE="NVIDIA"
SLOT="0"
KEYWORDS="-* amd64"
RESTRICT="nostrip"
IUSE=""
DEPEND="=media-video/nvidia-glx-${PV}
~app-emulation/emul-linux-x86-xlibs"
export _POSIX2_VERSION="199209"
src_unpack() {
cd ${WORKDIR}
bash ${DISTDIR}/${NV_PACKAGE}-${PKG}.run --extract-only
}
src_install() {
local LIB32_ROOT="/usr/lib32"
local LIB_ROOT="${LIB32_ROOT}/opengl/nvidia/lib"
local TLS_ROOT="${LIB_ROOT}/tls"
cd ${S}
# The files exist we just have to install them
exeinto ${LIB_ROOT}
doexe libGL.so.${PV} \
libGLcore.so.${PV} \
libnvidia-tls.so.${PV}
dosym ${LIB_ROOT}/libGL.so.${PV} ${LIB_ROOT}/libGL.so
dosym ${LIB_ROOT}/libGL.so.${PV} ${LIB_ROOT}/libGL.so.1
dosym ${LIB_ROOT}/libGLcore.so.${PV} ${LIB_ROOT}/libGLcore.so
dosym ${LIB_ROOT}/libGLcore.so.${PV} ${LIB_ROOT}/libGLcore.so.1
# TLS libraries
dodir ${TLS_ROOT}
exeinto ${TLS_ROOT}
doexe tls/libnvidia-tls.so.${PV}
dosym ${TLS_ROOT}/libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so
dosym ${TLS_ROOT}/libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so.1
#dosym ${LIB_ROOT}/tls ${LIB32_ROOT}
}
pkg_postinst() {
einfo
einfo "Currently if you need to use 32 bit compatibility libraries"
einfo "you will need to set the LD_LIBRARY_PATH variable"
einfo " LD_LIBRARY_PATH=\"/usr/lib32/opengl/nvidia/lib\" <command>"
einfo
}
|