Magellan Linux

Contents of /branches/branch-xorg18/core/mesa-progs/mesa-progs-7.6-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:keywords Id