wok view mesa/receipt @ rev 5240

Add: speedometer
author Paul Issott <paul@slitaz.org>
date Sat Apr 10 18:08:11 2010 +0000 (2010-04-10)
parents 5b44af8c1257
children 9853ce11bfc6
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="7.4.4"
5 CATEGORY="x-window"
6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="glibc-base expat libdrm xorg-libX11 xorg-libXau xorg-libXdamage \
9 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm libdrm"
10 SUGGESTED="nvidia"
11 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \
12 xorg-dri2proto xorg-glproto xorg-damageproto xorg-xproto xorg-fixesproto xorg-xextproto \
13 xorg-libX11-dev xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXt-dev \
14 xorg-libICE-dev xorg-libSM-dev xorg-xf86vidmodeproto xorg-libXxf86vm-dev"
15 SOURCE="Mesa"
16 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
17 WEB_SITE="http://www.mesa3d.org/"
18 WGET_URL="$SF_MIRROR/mesa3d/$TARBALL"
19 PROVIDE="libgl"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ln -s $src $PACKAGE-$VERSION 2>/dev/null
26 # Get and untar demo files
27 if [ ! -f $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2 ]; then
28 wget $SF_MIRROR/mesa3d/MesaDemos-$VERSION.tar.bz2 \
29 -P $SOURCES_REPOSITORY
30 fi
31 echo -n "Untaring MesaDemos-$VERSION.tar.bz2"
32 tar xjf $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2
33 status
35 cd $src
36 # --with-dri-driverdir=/usr/lib/X11/modules/dri ?
37 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
38 ./configure \
39 --prefix=/usr \
40 --with-x \
41 --enable-gl-osmesa \
42 --enable-motif \
43 $CONFIGURE_ARGS &&
44 make &&
45 make DESTDIR=$PWD/_pkg install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
54 # DRI drivers are include in the package mesa-dri-*
55 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
57 # libGLU is included in the package libglu-mesa
58 rm -r -f $fs/usr/lib/libGLU*
60 #libGLw is included in the package libglw-mesa
61 rm -r -f $fs/usr/lib/libGLw*
62 }