wok-stable view mesa/receipt @ rev 7163
linmodem-hsfmodem: do not assume build host kernel is up to date
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Nov 07 16:40:05 2010 +0100 (2010-11-07) |
parents | 5b982ce8d9d3 |
children | d7c954620e6a |
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"
10 SUGGESTED="nvidia"
11 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \
12 libdrm-intel libdrm-nouveau libdrm-radeon xorg-dri2proto xorg-glproto xorg-damageproto \
13 xorg-xproto xorg-fixesproto xorg-xextproto xorg-libX11-dev xorg-libXdamage-dev \
14 xorg-libXfixes-dev xorg-libXt-dev xorg-libICE-dev xorg-libSM-dev \
15 xorg-xf86vidmodeproto xorg-libXxf86vm-dev pkg-config wget talloc-dev libxml2-python \
16 libxcb-dev file"
17 SOURCE="Mesa"
18 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
19 WEB_SITE="http://www.mesa3d.org/"
20 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
21 PROVIDE="libgl"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ln -s $src $PACKAGE-$VERSION 2>/dev/null
28 cd $src
29 # --with-dri-driverdir=/usr/lib/X11/modules/dri ?
30 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
31 ./configure \
32 --prefix=/usr \
33 --with-x \
34 --enable-gl-osmesa \
35 --enable-motif \
36 --enable-gallium-radeon \
37 --enable-gallium-nouveau \
38 --enable-xcb \
39 $CONFIGURE_ARGS &&
40 # Also build nouveau_vieux_dri.so.
41 make -j 4 &&
42 make -j 4 -C src/mesa/drivers/dri/nouveau &&
43 make DESTDIR=$PWD/_pkg install &&
44 make -C src/mesa/drivers/dri/nouveau 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*
62 #libEGL is included in the package libegl-mesa
63 rm -r -f $fs/usr/lib/libEGL*
64 }