wok-next view mesa/receipt @ rev 6993

Big update: xorg/libdrm/mesa (174 packages)
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sun Oct 31 00:13:37 2010 +0200 (2010-10-31)
parents f27e4d63e0bf
children 50c03a002022
line source
1 # SliTaz package receipt.
3 PACKAGE="mesa"
4 VERSION="7.9"
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 libxcb 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 pkg-config
15 wget talloc-dev libxml2-python libxcb-dev"
16 SOURCE="Mesa"
17 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
18 WEB_SITE="http://www.mesa3d.org/"
19 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
20 PROVIDE="libgl"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ln -s $src $PACKAGE-$VERSION 2>/dev/null
27 cd $src
28 # --with-dri-driverdir=/usr/lib/X11/modules/dri ?
29 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
30 ./configure \
31 --prefix=/usr \
32 --with-x \
33 --enable-gl-osmesa \
34 --enable-motif \
35 --enable-gallium-radeon \
36 --enable-gallium-nouveau \
37 --enable-xcb \
38 $CONFIGURE_ARGS &&
39 # Also build nouveau_vieux_dri.so.
40 make -j 4 &&
41 make -j 4 -C src/mesa/drivers/dri/nouveau &&
42 make DESTDIR=$PWD/_pkg install &&
43 make -C src/mesa/drivers/dri/nouveau DESTDIR=$PWD/_pkg install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib
50 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
52 # DRI drivers are include in the package mesa-dri-*
53 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
55 # libGLU is included in the package libglu-mesa
56 rm -r -f $fs/usr/lib/libGLU*
58 #libGLw is included in the package libglw-mesa
59 rm -r -f $fs/usr/lib/libGLw*
61 #libEGL is included in the package libegl-mesa
62 rm -r -f $fs/usr/lib/libEGL*
63 }