Magellan Linux

Annotation of /trunk/core/opengl-update-magellan/opengl-update-magellan-2.2.11-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5288 - (hide annotations) (download)
Tue Apr 20 18:59:13 2010 UTC (14 years ago) by niro
File size: 1521 byte(s)
auto added: ver bump to 2.2.11-r1
1 niro 5196 # $Id$
2    
3     PNAME="opengl-update-magellan"
4     PVER="2.2.11"
5     PBUILD="r1"
6    
7     PCATEGORIE="x11-base"
8     STATE="unstable"
9    
10     DESCRIPTION="Updates your X11 OpenGL backend."
11     HOMEPAGE="http://www.magellan-linux.de/"
12    
13     sminclude mbuild mtools
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     [ -f ${MROOT}/etc/env.d/09opengl ] && \
37     mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl
38    
39     if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ]
40     then
41     echo "Removing libMesaGL.so from xorg profile."
42     rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so
43     fi
44    
45     if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ]
46     then
47     echo "Removing libMesaGL.so from /usr/lib."
48     rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so
49     fi
50    
51     local i
52     for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \
53     ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \
54     ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \
55     ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls*
56     do
57     [[ -e ${i} ]] && rm -f ${i}
58     done
59     }
60    
61     postinstall()
62     {
63     local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)"
64     if [[ -n ${impl} ]]
65     then
66     ${MROOT}/usr/sbin/opengl-update ${impl}
67     fi
68     }

Properties

Name Value
svn:keywords Id