Magellan Linux

Contents of /branches/R11-stable/extras/glproto/glproto-1.4.17-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20461 - (show annotations) (download)
Mon Jan 27 09:23:19 2014 UTC (10 years, 4 months ago) by niro
File size: 666 byte(s)
-release branches/R11-stable
1 # $Id$
2
3 PNAME="glproto"
4 PVER="1.4.17"
5 PBUILD="r1"
6
7 PCAT="x11-proto"
8
9 DESCRIPTION="GL extension headers."
10 HOMEPAGE="http://xorg.freedesktop.org"
11
12 sminclude xorg multilib mtools
13
14 DEPEND=">= x11-base/opengl-update-2.3"
15
16 UP2DATE="updatecmd_xorg ${PNAME}"
17
18 src_install()
19 {
20 mmake DESTDIR=${BINDIR} install || die
21
22 # dynamic opengl setup
23 minstalldir /usr/$(mlibdir)/opengl/xorg/include/GL || die
24
25 local i
26 for i in ${BINDIR}/usr/include/GL/{glxtokens.h,glxmd.h,glxproto.h}
27 do
28 if [ -f ${i} -o -L ${i} ]
29 then
30 mv -f ${i} ${BINDIR}/usr/$(mlibdir)/opengl/xorg/include/GL/ || die "${i}"
31 fi
32 done
33 }
34
35 postinstall()
36 {
37 ${MROOT}/usr/sbin/opengl-update --use-old xorg
38 }