Annotation of /smage/trunk/deprecated/opengl-update/opengl-update-2.3.14-r1.smage2
Parent Directory | Revision Log
Revision 14872 -
(hide annotations)
(download)
Wed Aug 5 14:26:47 2020 UTC (4 years, 1 month ago) by niro
File size: 1991 byte(s)
Wed Aug 5 14:26:47 2020 UTC (4 years, 1 month ago) by niro
File size: 1991 byte(s)
-moved to 'deprecated'
1 | niro | 14063 | # $Id$ |
2 | |||
3 | PNAME="opengl-update" | ||
4 | PVER="2.3.14" | ||
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 | ALX_PKG_KEEP="usr/sbin" | ||
13 | sminclude mbuild mtools alx-split | ||
14 | msetfeature "!check" | ||
15 | |||
16 | DEPEND=">= virtual/glibc" | ||
17 | |||
18 | SRCFILE="${PNAME}-${PVER}.tar.bz2" | ||
19 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
20 | |||
21 | # http://oss.sgi.com/projects/ogl-sample/ABI/glext.h | ||
22 | # http://oss.sgi.com/projects/ogl-sample/ABI/glxext.h | ||
23 | # or the newest with opengl-2.1 at: | ||
24 | # http://www.opengl.org/registry/api/glext.h | ||
25 | # http://www.opengl.org/registry/api/glxext.h | ||
26 | SRC_URI=( mirror://${PNAME}/${SRCFILE} ) | ||
27 | |||
28 | preinstall() | ||
29 | { | ||
30 | if [[ ! -z $(magequery -n opengl-update-magellan) ]] | ||
31 | then | ||
32 | echo -e ${COLRED} | ||
33 | echo -e "Error: x11-base/opengl-update-magellan is installed!!" | ||
34 | echo -e "opengl-update-magellan was renamed to opengl-update." | ||
35 | echo -e "Please uninstall x11-base/opengl-update-magellan first!" | ||
36 | echo -e ${COLDEFAULT} | ||
37 | die "x11-base/opengl-update-magellan found!" | ||
38 | fi | ||
39 | |||
40 | # the location has changed to 03opengl | ||
41 | if [ -f ${MROOT}/etc/env.d/09opengl ] | ||
42 | then | ||
43 | mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl | ||
44 | fi | ||
45 | |||
46 | if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ] | ||
47 | then | ||
48 | echo "Removing libMesaGL.so from xorg profile." | ||
49 | rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so | ||
50 | fi | ||
51 | |||
52 | if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ] | ||
53 | then | ||
54 | echo "Removing libMesaGL.so from /usr/lib." | ||
55 | rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so | ||
56 | fi | ||
57 | |||
58 | local i | ||
59 | for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \ | ||
60 | ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \ | ||
61 | ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \ | ||
62 | ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls* | ||
63 | do | ||
64 | [[ -e ${i} ]] && rm -f ${i} | ||
65 | done | ||
66 | } | ||
67 | |||
68 | postinstall() | ||
69 | { | ||
70 | local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)" | ||
71 | if [[ -n ${impl} ]] | ||
72 | then | ||
73 | ${MROOT}/usr/sbin/opengl-update ${impl} | ||
74 | fi | ||
75 | impl="$(${MROOT}/usr/sbin/dri-update --get-implementation)" | ||
76 | if [[ -n ${impl} ]] | ||
77 | then | ||
78 | ${MROOT}/usr/sbin/dri-update ${impl} | ||
79 | fi | ||
80 | } |