Contents of /trunk/core/opengl-update-magellan/opengl-update-magellan-2.2.19-r2.smage2
Parent Directory | Revision Log
Revision 13001 -
(show annotations)
(download)
Thu Aug 16 13:52:35 2012 UTC (12 years, 1 month ago) by niro
File size: 1658 byte(s)
Thu Aug 16 13:52:35 2012 UTC (12 years, 1 month ago) by niro
File size: 1658 byte(s)
-rebuild
1 | # $Id$ |
2 | |
3 | PNAME="opengl-update-magellan" |
4 | PVER="2.2.19" |
5 | PBUILD="r2" |
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 | src_compile() |
28 | { |
29 | cd ${SRCDIR} |
30 | mmake || die |
31 | } |
32 | |
33 | preinstall() |
34 | { |
35 | # the location has changed to 03opengl |
36 | if [ -f ${MROOT}/etc/env.d/09opengl ] |
37 | then |
38 | mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl |
39 | fi |
40 | |
41 | if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ] |
42 | then |
43 | echo "Removing libMesaGL.so from xorg profile." |
44 | rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so |
45 | fi |
46 | |
47 | if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ] |
48 | then |
49 | echo "Removing libMesaGL.so from /usr/lib." |
50 | rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so |
51 | fi |
52 | |
53 | local i |
54 | for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \ |
55 | ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \ |
56 | ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \ |
57 | ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls* |
58 | do |
59 | [[ -e ${i} ]] && rm -f ${i} |
60 | done |
61 | } |
62 | |
63 | postinstall() |
64 | { |
65 | local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)" |
66 | if [[ -n ${impl} ]] |
67 | then |
68 | ${MROOT}/usr/sbin/opengl-update ${impl} |
69 | fi |
70 | impl="$(${MROOT}/usr/sbin/dri-update --get-implementation)" |
71 | if [[ -n ${impl} ]] |
72 | then |
73 | ${MROOT}/usr/sbin/dri-update ${impl} |
74 | fi |
75 | } |