/[livecd-tools]/trunk/openglify
Gentoo

Contents of /trunk/openglify

Parent Directory Parent Directory | Revision Log Revision Log


Revision 149 - (show annotations) (download)
Tue Apr 8 15:29:01 2008 UTC (6 years, 7 months ago) by wolf31o2
File size: 2691 byte(s)
Updated openglify for bug #216598 and added a TODO.
1 #!/bin/bash
2
3 # This script is designed to tweak the system for eselect-opengl
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*/xorg/modules/extensions/libglx* > /dev/null 2>&1
12
13 # We start with the "default" libdir of /usr/lib
14 if [ ! -h /usr/lib ]
15 then
16 ln -sf /etc/opengl/lib/libGL.so /usr/lib/libGL.so
17 ln -sf /etc/opengl/lib/libGL.so.1 /usr/lib/libGL.so.1
18 ln -sf /etc/opengl/lib/libGLcore.so /usr/lib/libGLcore.so
19 ln -sf /etc/opengl/lib/libGLcore.so.1 /usr/lib/libGLcore.so.1
20 ln -sf /etc/opengl/lib/libGL.la /usr/lib/libGL.la
21 fi
22
23 # We then check for /usr/lib32
24 if [ -d /usr/lib32 ]
25 then
26 ln -sf /etc/opengl/lib32/libGL.so /usr/lib32/libGL.so
27 ln -sf /etc/opengl/lib32/libGL.so.1 /usr/lib32/libGL.so.1
28 ln -sf /etc/opengl/lib32/libGLcore.so /usr/lib32/libGLcore.so
29 ln -sf /etc/opengl/lib32/libGLcore.so.1 /usr/lib32/libGLcore.so.1
30 ln -sf /etc/opengl/lib32/libGL.la /usr/lib32/libGL.la
31 fi
32
33 # We create symlinks for the libglx.so and libglx.a
34 if [ -d /usr/lib64/xorg/modules/extensions ]
35 then
36 ln -sf /etc/opengl/lib64/modules/extensions/libglx.so \
37 /usr/lib/xorg/modules/extensions/libglx.so
38 ln -sf /etc/opengl/lib64/modules/extensions/libglx.a \
39 /usr/lib/xorg/modules/extensions/libglx.a
40 elif [ -d /usr/lib64/modules/extensions ]
41 then
42 ln -sf /etc/opengl/lib64/modules/extensions/libglx.so \
43 /usr/lib64/modules/extensions/libglx.so
44 ln -sf /etc/opengl/lib64/modules/extensions/libglx.a \
45 /usr/lib64/modules/extensions/libglx.a
46 fi
47 # Do the same for 32-bit
48 if [ -d /usr/lib32/xorg/modules/extensions ]
49 then
50 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
51 /usr/lib32/xorg/modules/extensions/libglx.so
52 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
53 /usr/lib32/xorg/modules/extensions/libglx.a
54 elif [ -d /usr/lib32/modules/extensions ]
55 then
56 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
57 /usr/lib32/modules/extensions/libglx.so
58 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
59 /usr/lib32/modules/extensions/libglx.a
60 fi
61 # Do it for non-multilib
62 if [ -d /usr/lib/xorg/modules/extensions ]
63 then
64 ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
65 /usr/lib/xorg/modules/extensions/libglx.so
66 ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
67 /usr/lib/xorg/modules/extensions/libglx.a
68 elif [ -d /usr/lib/modules/extensions ]
69 then
70 ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
71 /usr/lib/modules/extensions/libglx.so
72 ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
73 /usr/lib/modules/extensions/libglx.a
74 fi

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20