wok-stable annotate mesa/receipt @ rev 5291
Up: All Xorg proto (rel 7.5 and up)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 18 21:56:48 2010 +0200 (2010-04-18) |
parents | 5b44af8c1257 |
children | 9853ce11bfc6 |
rev | line source |
---|---|
pascal@592 | 1 # SliTaz package receipt. |
pascal@592 | 2 |
pascal@592 | 3 PACKAGE="mesa" |
rcx@3695 | 4 VERSION="7.4.4" |
pankso@4421 | 5 CATEGORY="x-window" |
rcx@3695 | 6 SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL." |
pascal@592 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
rcx@3695 | 8 DEPENDS="glibc-base expat libdrm xorg-libX11 xorg-libXau xorg-libXdamage \ |
jozee@5018 | 9 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm libdrm" |
jozee@5018 | 10 SUGGESTED="nvidia" |
pankso@4170 | 11 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \ |
rcx@3695 | 12 xorg-dri2proto xorg-glproto xorg-damageproto xorg-xproto xorg-fixesproto xorg-xextproto \ |
rcx@3695 | 13 xorg-libX11-dev xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXt-dev \ |
pankso@4170 | 14 xorg-libICE-dev xorg-libSM-dev xorg-xf86vidmodeproto xorg-libXxf86vm-dev" |
pascal@592 | 15 SOURCE="Mesa" |
pascal@592 | 16 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2" |
pascal@592 | 17 WEB_SITE="http://www.mesa3d.org/" |
pascal@592 | 18 WGET_URL="$SF_MIRROR/mesa3d/$TARBALL" |
rcx@3695 | 19 PROVIDE="libgl" |
pascal@592 | 20 |
pascal@592 | 21 # Rules to configure and make the package. |
pascal@592 | 22 compile_rules() |
rcx@3695 | 23 { |
pankso@3007 | 24 ln -s $src $PACKAGE-$VERSION 2>/dev/null |
pankso@4421 | 25 |
pankso@4421 | 26 # Get and untar demo files |
pankso@4421 | 27 if [ ! -f $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2 ]; then |
pankso@4421 | 28 wget $SF_MIRROR/mesa3d/MesaDemos-$VERSION.tar.bz2 \ |
pankso@4421 | 29 -P $SOURCES_REPOSITORY |
pankso@4421 | 30 fi |
pankso@4421 | 31 echo -n "Untaring MesaDemos-$VERSION.tar.bz2" |
pankso@4421 | 32 tar xjf $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2 |
pankso@4421 | 33 status |
pankso@4421 | 34 |
pascal@592 | 35 cd $src |
pankso@4421 | 36 # --with-dri-driverdir=/usr/lib/X11/modules/dri ? |
pankso@3007 | 37 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure && |
rcx@3695 | 38 ./configure \ |
rcx@3695 | 39 --prefix=/usr \ |
rcx@3695 | 40 --with-x \ |
rcx@3695 | 41 --enable-gl-osmesa \ |
rcx@3695 | 42 --enable-motif \ |
rcx@3695 | 43 $CONFIGURE_ARGS && |
pankso@3007 | 44 make && |
pascal@592 | 45 make DESTDIR=$PWD/_pkg install |
pascal@592 | 46 } |
pascal@592 | 47 |
pascal@592 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@592 | 49 genpkg_rules() |
pascal@592 | 50 { |
pankso@3007 | 51 mkdir -p $fs/usr/lib |
pankso@3007 | 52 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@4421 | 53 |
pankso@4421 | 54 # DRI drivers are include in the package mesa-dri-* |
pankso@4421 | 55 #cp -a $_pkg/usr/lib/dri $fs/usr/lib |
pankso@4170 | 56 |
rcx@3695 | 57 # libGLU is included in the package libglu-mesa |
rcx@3695 | 58 rm -r -f $fs/usr/lib/libGLU* |
pankso@4170 | 59 |
rcx@3695 | 60 #libGLw is included in the package libglw-mesa |
rcx@3695 | 61 rm -r -f $fs/usr/lib/libGLw* |
pascal@592 | 62 } |