wok-current view mesa/receipt @ rev 6017

icedtea6: Upgrade to 1.8.1
author Matthew Sheets <rcx@zoominternet.net>
date Sat Aug 14 21:49:48 2010 +0000 (2010-08-14)
parents 3bd7d606c2e3
children f03e80442706
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="7.8.1"
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="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$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 ftp://ftp.freedesktop.org/pub/mesa/$VERSION/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 --disable-gallium-intel \
44 --disable-gallium \
45 $CONFIGURE_ARGS &&
46 make -j 4 &&
47 make DESTDIR=$PWD/_pkg install
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/lib
54 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
56 # DRI drivers are include in the package mesa-dri-*
57 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
59 # libGLU is included in the package libglu-mesa
60 rm -r -f $fs/usr/lib/libGLU*
62 #libGLw is included in the package libglw-mesa
63 rm -r -f $fs/usr/lib/libGLw*
65 #libEGL is included in the package libegl-mesa
66 rm -r -f $fs/usr/lib/libEGL*
67 }