wok-6.x view mesa/receipt @ rev 7868
Up: mercurial to 1.7.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 02 19:36:34 2011 +0000 (2011-01-02) |
parents | 0d287952aabb |
children | c483f6f1044b |
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-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 }