Contents of /smage/trunk/core/opengl-update/opengl-update-2.3.1-r1.smage2
Parent Directory | Revision Log
Revision 4349 -
(show annotations)
(download)
Thu Nov 15 13:27:51 2012 UTC (11 years, 7 months ago) by niro
File size: 2037 byte(s)
Thu Nov 15 13:27:51 2012 UTC (11 years, 7 months ago) by niro
File size: 2037 byte(s)
auto added: ver bump to 2.3.1-r1
1 | # $Id$ |
2 | |
3 | PNAME="opengl-update" |
4 | PVER="2.3.1" |
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 | src_compile() |
29 | { |
30 | cd ${SRCDIR} |
31 | mmake || die |
32 | } |
33 | |
34 | preinstall() |
35 | { |
36 | if [[ ! -z $(magequery -n opengl-update-magellan) ]] |
37 | then |
38 | echo -e ${COLRED} |
39 | echo -e "Error: x11-base/opengl-update-magellan is installed!!" |
40 | echo -e "opengl-update-magellan was renamed to opengl-update." |
41 | echo -e "Please uninstall x11-base/opengl-update-magellan first!" |
42 | echo -e ${COLDEFAULT} |
43 | die "x11-base/opengl-update-magellan found!" |
44 | fi |
45 | |
46 | # the location has changed to 03opengl |
47 | if [ -f ${MROOT}/etc/env.d/09opengl ] |
48 | then |
49 | mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl |
50 | fi |
51 | |
52 | if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ] |
53 | then |
54 | echo "Removing libMesaGL.so from xorg profile." |
55 | rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so |
56 | fi |
57 | |
58 | if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ] |
59 | then |
60 | echo "Removing libMesaGL.so from /usr/lib." |
61 | rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so |
62 | fi |
63 | |
64 | local i |
65 | for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \ |
66 | ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \ |
67 | ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \ |
68 | ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls* |
69 | do |
70 | [[ -e ${i} ]] && rm -f ${i} |
71 | done |
72 | } |
73 | |
74 | postinstall() |
75 | { |
76 | local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)" |
77 | if [[ -n ${impl} ]] |
78 | then |
79 | ${MROOT}/usr/sbin/opengl-update ${impl} |
80 | fi |
81 | impl="$(${MROOT}/usr/sbin/dri-update --get-implementation)" |
82 | if [[ -n ${impl} ]] |
83 | then |
84 | ${MROOT}/usr/sbin/dri-update ${impl} |
85 | fi |
86 | } |