Magellan Linux

Contents of /smage/branches/alx07x-stable/core/glproto/glproto-1.4.17-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11374 - (show annotations) (download)
Tue Dec 19 12:28:44 2017 UTC (6 years, 4 months ago) by niro
File size: 631 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="glproto"
4 PVER="1.4.17"
5 PBUILD="r3"
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 }