/[livecd-tools]/trunk/openglify
Gentoo

Contents of /trunk/openglify

Parent Directory Parent Directory | Revision Log Revision Log


Revision 146 - (show annotations) (download)
Thu Feb 28 18:15:55 2008 UTC (6 years, 6 months ago) by wolf31o2
File size: 1924 byte(s)
Let's clean up openglify so it works on both older and newer versions of X.Org server.
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/lib/xorg/modules/extensions ]
35 then
36 ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
37 /usr/lib/xorg/modules/extensions/libglx.so
38 ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
39 /usr/lib/xorg/modules/extensions/libglx.a
40 if [ -d /usr/lib32/xorg/modules/extensions ]
41 then
42 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
43 /usr/lib32/xorg/modules/extensions/libglx.so
44 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
45 /usr/lib32/xorg/modules/extensions/libglx.a
46 elif [ -d /usr/lib32/modules/extensions ]
47 then
48 ln -sf /etc/opengl/lib32/modules/extensions/libglx.so \
49 /usr/lib32/modules/extensions/libglx.so
50 ln -sf /etc/opengl/lib32/modules/extensions/libglx.a \
51 /usr/lib32/modules/extensions/libglx.a
52 fi
53 fi

Properties

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

  ViewVC Help
Powered by ViewVC 1.1.20