wok view mesa/receipt @ rev 4739

Up: tazpkg (3.2) - Box is much faster and deps auto installed
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jan 07 21:02:23 2010 +0100 (2010-01-07)
parents 4cfce81a4a6b
children 5b44af8c1257
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 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \
11 xorg-dri2proto xorg-glproto xorg-damageproto xorg-xproto xorg-fixesproto xorg-xextproto \
12 xorg-libX11-dev xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXt-dev \
13 xorg-libICE-dev xorg-libSM-dev xorg-xf86vidmodeproto xorg-libXxf86vm-dev"
14 SOURCE="Mesa"
15 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
16 WEB_SITE="http://www.mesa3d.org/"
17 WGET_URL="$SF_MIRROR/mesa3d/$TARBALL"
18 PROVIDE="libgl"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 ln -s $src $PACKAGE-$VERSION 2>/dev/null
25 # Get and untar demo files
26 if [ ! -f $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2 ]; then
27 wget $SF_MIRROR/mesa3d/MesaDemos-$VERSION.tar.bz2 \
28 -P $SOURCES_REPOSITORY
29 fi
30 echo -n "Untaring MesaDemos-$VERSION.tar.bz2"
31 tar xjf $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2
32 status
34 cd $src
35 # --with-dri-driverdir=/usr/lib/X11/modules/dri ?
36 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
37 ./configure \
38 --prefix=/usr \
39 --with-x \
40 --enable-gl-osmesa \
41 --enable-motif \
42 $CONFIGURE_ARGS &&
43 make &&
44 make DESTDIR=$PWD/_pkg install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
53 # DRI drivers are include in the package mesa-dri-*
54 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
56 # libGLU is included in the package libglu-mesa
57 rm -r -f $fs/usr/lib/libGLU*
59 #libGLw is included in the package libglw-mesa
60 rm -r -f $fs/usr/lib/libGLw*
61 }