Annotation of /trunk/extras/mesa-progs/mesa-progs-8.2.0-r1.smage2
Parent Directory | Revision Log
Revision 22641 -
(hide annotations)
(download)
Mon Oct 27 14:03:26 2014 UTC (9 years, 7 months ago) by niro
File size: 1910 byte(s)
Mon Oct 27 14:03:26 2014 UTC (9 years, 7 months ago) by niro
File size: 1910 byte(s)
-fixed typos
1 | niro | 22634 | # $Id$ |
2 | |||
3 | PNAME="mesa-progs" | ||
4 | PVER="8.2.0" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="x11-apps" | ||
8 | |||
9 | DESCRIPTION="Mesa3D OpenGL graphics applications." | ||
10 | HOMEPAGE="http://mesa3d.sourceforge.net/" | ||
11 | |||
12 | DEPEND=">= virtual/glut | ||
13 | niro | 22638 | >= virtual/glew |
14 | niro | 22634 | >= virtual/opengl" |
15 | |||
16 | SRCFILE="mesa-demos-${PVER}.tar.bz2" | ||
17 | SRCDIR="${BUILDDIR}/mesa-demos-${PVER}" | ||
18 | |||
19 | sminclude mbuild mtools | ||
20 | msetfeature "!check" | ||
21 | |||
22 | SRC_URI=( | ||
23 | ftp://ftp.freedesktop.org/pub/mesa/demos/${PVER}/${SRCFILE} | ||
24 | #sourceforge://mesa3d/${SRCFILE} | ||
25 | mirror://${PNAME}/${SRCFILE} | ||
26 | ) | ||
27 | |||
28 | UP2DATE="updatecmd ftp://ftp.freedesktop.org/pub/mesa/demos | sed -n 's:.*/\([0-9].*\):\1:;$ p'" | ||
29 | |||
30 | src_compile() | ||
31 | { | ||
32 | cd ${SRCDIR} | ||
33 | niro | 22639 | mconfigure || die |
34 | |||
35 | # opengl | ||
36 | mmake -C src/xdemos glxgears || die | ||
37 | mmake -C src/xdemos glxinfo || die | ||
38 | |||
39 | # egl | ||
40 | mmake -C src/egl/opengl eglinfo || die | ||
41 | niro | 22640 | # required to build eglgears* |
42 | mmake -C src/egl/eglut/ libeglut_screen.la libeglut_x11.la || die | ||
43 | niro | 22639 | mmake -C src/egl/opengl eglgears_x11 || die |
44 | mmake -C src/egl/opengl eglgears_screen || die | ||
45 | |||
46 | # gles1 | ||
47 | mmake -C src/egl/opengles1 es1_info || die | ||
48 | mmake -C src/egl/opengles1 gears_x11 || die | ||
49 | mmake -C src/egl/opengles1 gears_screen || die | ||
50 | |||
51 | # gles2 | ||
52 | mmake -C src/egl/opengles2 es2_info || die | ||
53 | mmake -C src/egl/opengles2 es2gears_x11 || die | ||
54 | mmake -C src/egl/opengles2 es2gears_screen || die | ||
55 | niro | 22634 | } |
56 | |||
57 | src_install() | ||
58 | { | ||
59 | cd ${SRCDIR} | ||
60 | niro | 22639 | |
61 | # opengl | ||
62 | niro | 22634 | minstallexec src/xdemos/glxgears || die |
63 | minstallexec src/xdemos/glxinfo || die | ||
64 | niro | 22639 | |
65 | # egl | ||
66 | minstallexec src/egl/opengl/eglinfo || die | ||
67 | minstallexec src/egl/opengl/eglgears_x11 || die | ||
68 | minstallexec src/egl/opengl/eglgears_screen || die | ||
69 | |||
70 | # gles1 | ||
71 | niro | 22641 | minstallexec src/egl/opengles1/es1_info || die |
72 | niro | 22639 | minstallexec src/egl/opengles1/gears_x11 /usr/bin/es1gears_x11 || die |
73 | minstallexec src/egl/opengles1/gears_screen /usr/bin/es1gears_screen || die | ||
74 | |||
75 | # gles2 | ||
76 | niro | 22641 | minstallexec src/egl/opengles2/es2_info || die |
77 | niro | 22639 | minstallexec src/egl/opengles2/es2gears_x11 || die |
78 | minstallexec src/egl/opengles2/es2gears_screen || die | ||
79 | niro | 22634 | } |