Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4233 - (hide annotations) (download)
Fri Nov 9 14:29:03 2012 UTC (11 years, 6 months ago) by niro
Original Path: smage/trunk/core/opengl-update-magellan/opengl-update-magellan-2.2.19-r1.smage2
File size: 1692 byte(s)
auto added: ver bump to 2.2.19-r1
1 niro 4233 # $Id$
2    
3     PNAME="opengl-update-magellan"
4     PVER="2.2.19"
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     # the location has changed to 03opengl
37     if [ -f ${MROOT}/etc/env.d/09opengl ]
38     then
39     mv ${MROOT}/etc/env.d/09opengl ${MROOT}/etc/env.d/03opengl
40     fi
41    
42     if [ -e /usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so ]
43     then
44     echo "Removing libMesaGL.so from xorg profile."
45     rm -f ${MROOT}/usr/$(mlibdir)/opengl/xorg/lib/libMesaGL.so
46     fi
47    
48     if [ -e ${MROOT}/usr/$(mlibdir)/libMesaGL.so ]
49     then
50     echo "Removing libMesaGL.so from /usr/lib."
51     rm -f ${MROOT}/usr/$(mlibdir)/libMesaGL.so
52     fi
53    
54     local i
55     for i in ${MROOT}/usr/$(mlibdir)/libGL.so.* \
56     ${MROOT}/usr/$(mlibdir)/libGLcore.so.* \
57     ${MROOT}/usr/$(mlibdir)/libnvidia-tls* \
58     ${MROOT}/usr/$(mlibdir)/tls/libnvidia-tls*
59     do
60     [[ -e ${i} ]] && rm -f ${i}
61     done
62     }
63    
64     postinstall()
65     {
66     local impl="$(${MROOT}/usr/sbin/opengl-update --get-implementation)"
67     if [[ -n ${impl} ]]
68     then
69     ${MROOT}/usr/sbin/opengl-update ${impl}
70     fi
71     impl="$(${MROOT}/usr/sbin/dri-update --get-implementation)"
72     if [[ -n ${impl} ]]
73     then
74     ${MROOT}/usr/sbin/dri-update ${impl}
75     fi
76     }