/[livecd-tools]/trunk/openglify
Gentoo

Contents of /trunk/openglify

Parent Directory Parent Directory | Revision Log Revision Log


Revision 121 - (show annotations) (download)
Tue Sep 12 15:10:00 2006 UTC (7 years, 10 months ago) by wolf31o2
File size: 2156 byte(s)
Update openglify to support 32-bit drivers on a 64-bit system.

1 #!/bin/bash
2
3 # This script is designed to tweak the system for eselect-opengl/opengl-update.
4
5 # move symlinks to a malleable /etc/opengl directory.
6 install -d test/lib/modules/extensions
7
8 # First, we remove all of the symlinks, so we can point them to our own
9 # /etc/opengl directory
10 rm -f /usr/lib*/libGL{,core}.{a,so}* > /dev/null 2>&1
11 rm -f /usr/lib*/modules/extensions/libglx* > /dev/null 2>&1
12 rm -f /usr/lib*/xorg/modules/extensions/libglx* > /dev/null 2>&1
13
14 # We start with the "default" libdir of /usr/lib
15 ln -sf /etc/opengl/lib/libGL.so /usr/lib/libGL.so
16 ln -sf /etc/opengl/lib/libGL.so.1 /usr/lib/libGL.so.1
17 ln -sf /etc/opengl/lib/libGLcore.so /usr/lib/libGLcore.so
18 ln -sf /etc/opengl/lib/libGLcore.so.1 /usr/lib/libGLcore.so.1
19 ln -sf /etc/opengl/lib/libGL.la /usr/lib/libGL.la
20
21 # We then check for /usr/lib32
22 if [ -d /usr/lib32 ]
23 then
24 ln -sf /etc/opengl/lib32/libGL.so /usr/lib32/libGL.so
25 ln -sf /etc/opengl/lib32/libGL.so.1 /usr/lib32/libGL.so.1
26 ln -sf /etc/opengl/lib32/libGLcore.so /usr/lib32/libGLcore.so
27 ln -sf /etc/opengl/lib32/libGLcore.so.1 /usr/lib32/libGLcore.so.1
28 ln -sf /etc/opengl/lib32/libGL.la /usr/lib32/libGL.la
29 fi
30
31 # We create symlinks fo the libglx.so and libglx.a
32 if [ -d /usr/lib/modules/extensions ]
33 then
34 ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
35 /usr/lib/modules/extensions/libglx.so
36 ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
37 /usr/lib/modules/extensions/libglx.a
38 if [ -d /usr/lib32 ]
39 then
40 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
41 /usr/lib32/modules/extensions/libglx.so
42 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
43 /usr/lib32/modules/extensions/libglx.a
44 fi
45 elif [ -d /usr/lib/xorg/modules/extensions ]
46 then
47 ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
48 /usr/lib/xorg/modules/extensions/libglx.so
49 ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
50 /usr/lib/xorg/modules/extensions/libglx.a
51 if [ -d /usr/lib32 ]
52 then
53 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
54 /usr/lib32/xorg/modules/extensions/libglx.so
55 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
56 /usr/lib32/xorg/modules/extensions/libglx.a
57 fi
58 fi

Properties

Name Value
svn:eol-style native
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20