Magellan Linux

Contents of /trunk/extras/mesa-progs/mesa-progs-7.1_rc3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download)
Fri Oct 10 13:29:42 2008 UTC (15 years, 7 months ago) by niro
File size: 1526 byte(s)
import repo
1 # $Header: /magellan-cvs/smage/mesa-progs/mesa-progs-7.1_rc3-r1.smage2,v 1.1 2008/07/31 17:43:42 niro Exp $
2
3 PNAME="mesa-progs"
4 PVER="7.1_rc3"
5 PBUILD="r1"
6
7 PCATEGORIE="x11-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Mesa3D OpenGL graphics applications."
11 HOMEPAGE="http://mesa3d.sourceforge.net/"
12
13 sminclude xorg mtools
14
15 # removed opengl -> results in loopings with depwalker
16 DEPEND=">= virtual/glut"
17 # >= virtual/opengl"
18
19 LIB_SRCFILE="MesaLib-${PVER/_/-}.tar.gz"
20 PROGS_SRCFILE="MesaDemos-${PVER/_/-}.tar.gz"
21
22 # libs + progs have the same SRCDIR
23 SRCDIR="${BUILDDIR}/Mesa-${PVER/_/-}"
24
25 SRC_URI=(
26 http://www.mesa3d.org/beta/${LIB_SRCFILE}
27 http://www.mesa3d.org/beta/${PROGS_SRCFILE}
28 mirror://mesa/${LIB_SRCFILE}
29 mirror://mesa/${PROGS_SRCFILE}
30 )
31
32 hostconf_add()
33 {
34 echo "$@" >> ${hostconf} || die
35 }
36
37 src_prepare()
38 {
39 munpack ${LIB_SRCFILE} || die
40 munpack ${PROGS_SRCFILE} || die
41 }
42
43 src_compile()
44 {
45 cd ${SRCDIR}
46
47 local hostconf
48 [[ ${ARCH} = i*86 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86"
49 [[ ${ARCH} = x86_64 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86-64"
50
51 # kill this; we don't want /usr/X11R6/lib ever to be searched in this
52 # build.
53 hostconf_add "EXTRA_LIB_PATH ="
54
55 # our cflags
56 hostconf_add "OPT_FLAGS = ${CFLAGS}"
57
58 # enable pic
59 hostconf_add "PIC_FLAGS ="
60
61 cd ${SRCDIR}/configs
62 ln -s $(basename ${hostconf}) current || die
63
64 cd ${SRCDIR}/progs/xdemos
65 mmake glxinfo || die
66 mmake glxgears || die
67 }
68
69 src_install()
70 {
71 cd ${SRCDIR}/progs/xdemos
72
73 minstallexec glxgears || die
74 minstallexec glxinfo || die
75 }

Properties

Name Value
svn:keywords Id