Contents of /branches/R11-stable/extras/opengl-update/opengl-update-2.3.11-r1.smage2
Parent Directory | Revision Log
Revision 24386 -
(show annotations)
(download)
Fri Feb 20 10:16:30 2015 UTC (9 years, 7 months ago) by niro
File size: 1957 byte(s)
Fri Feb 20 10:16:30 2015 UTC (9 years, 7 months ago) by niro
File size: 1957 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="opengl-update" |
4 | PVER="2.3.11" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="x11-base" |
8 | |
9 | DESCRIPTION="Updates your X11 OpenGL backend." |
10 | HOMEPAGE="http://www.magellan-linux.de/" |
11 | |
12 | sminclude mbuild mtools |
13 | msetfeature "!check" |
14 | |
15 | DEPEND=">= virtual/glibc" |
16 | |
17 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
19 | |
20 | # http://oss.sgi.com/projects/ogl-sample/ABI/glext.h |
21 | # http://oss.sgi.com/projects/ogl-sample/ABI/glxext.h |
22 | # or the newest with opengl-2.1 at: |
23 | # http://www.opengl.org/registry/api/glext.h |
24 | # http://www.opengl.org/registry/api/glxext.h |
25 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) |
26 | |
27 | preinstall() |
28 | { |
29 | if [[ ! -z $(magequery -n opengl-update-magellan) ]] |
30 | then |
31 | echo -e ${COLRED} |
32 | echo -e "Error: x11-base/opengl-update-magellan is installed!!" |
33 | echo -e "opengl-update-magellan was renamed to opengl-update." |
34 | echo -e "Please uninstall x11-base/opengl-update-magellan first!" |
35 | echo -e ${COLDEFAULT} |
36 | die "x11-base/opengl-update-magellan found!" |
37 | fi |
38 | |
39 | # the location has changed to 03opengl |
40 | if [ -f ${MROOT}/etc/env.d/09opengl ] |
41 | then |
42 | mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl |
43 | fi |
44 | |
45 | if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ] |
46 | then |
47 | echo "Removing libMesaGL.so from xorg profile." |
48 | rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so |
49 | fi |
50 | |
51 | if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ] |
52 | then |
53 | echo "Removing libMesaGL.so from /usr/lib." |
54 | rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so |
55 | fi |
56 | |
57 | local i |
58 | for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \ |
59 | ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \ |
60 | ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \ |
61 | ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls* |
62 | do |
63 | [[ -e ${i} ]] && rm -f ${i} |
64 | done |
65 | } |
66 | |
67 | postinstall() |
68 | { |
69 | local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)" |
70 | if [[ -n ${impl} ]] |
71 | then |
72 | ${MROOT}/usr/sbin/opengl-update ${impl} |
73 | fi |
74 | impl="$(${MROOT}/usr/sbin/dri-update --get-implementation)" |
75 | if [[ -n ${impl} ]] |
76 | then |
77 | ${MROOT}/usr/sbin/dri-update ${impl} |
78 | fi |
79 | } |