Magellan Linux

Contents of /branches/R11-unstable/extras/glproto/glproto-1.4.17-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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