Magellan Linux

Contents of /trunk/core/mesa-progs/mesa-progs-7.4.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1230 - (show annotations) (download)
Sun Apr 26 13:48:30 2009 UTC (15 years ago) by niro
File size: 1461 byte(s)
auto added: ver bump to 7.4.1-r1
1 # $Id$
2
3 PNAME="mesa-progs"
4 PVER="7.4.1"
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 sourceforge://mesa3d/${LIB_SRCFILE}
27 sourceforge://mesa3d/${PROGS_SRCFILE}
28 mirror://mesa/${LIB_SRCFILE}
29 mirror://mesa/${PROGS_SRCFILE}
30 )
31
32 UP2DATE="updatecmd_sourceforge mesa3d MesaDemos"
33
34 hostconf_add()
35 {
36 echo "$@" >> ${hostconf} || die
37 }
38
39 src_prepare()
40 {
41 munpack ${LIB_SRCFILE} || die
42 munpack ${PROGS_SRCFILE} || die
43 }
44
45 src_compile()
46 {
47 cd ${SRCDIR}
48
49 local hostconf
50 [[ ${ARCH} = i*86 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86"
51 [[ ${ARCH} = x86_64 ]] && hostconf="${SRCDIR}/configs/linux-dri-x86-64"
52
53 # kill this; we don't want /usr/X11R6/lib ever to be searched in this
54 # build.
55 hostconf_add "EXTRA_LIB_PATH ="
56
57 # our cflags
58 hostconf_add "OPT_FLAGS = ${CFLAGS}"
59
60 # enable pic
61 hostconf_add "PIC_FLAGS ="
62
63 cd ${SRCDIR}/configs
64 ln -s $(basename ${hostconf}) current || die
65
66 cd ${SRCDIR}/progs/xdemos
67 mmake glxinfo || die
68 mmake glxgears || die
69 }
70
71 src_install()
72 {
73 cd ${SRCDIR}/progs/xdemos
74
75 minstallexec glxgears || die
76 minstallexec glxinfo || die
77 }

Properties

Name Value
svn:keywords Id