Magellan Linux

Contents of /smage/trunk/core/glproto/glproto-1.4.17-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6146 - (show annotations) (download)
Tue Mar 24 08:29:13 2015 UTC (9 years, 1 month ago) by niro
File size: 631 byte(s)
-buildserver
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 }