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