wok-6.x diff 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
line diff
     1.1 --- a/mesa/receipt	Tue Sep 22 20:59:25 2009 +0200
     1.2 +++ b/mesa/receipt	Sun Oct 25 17:27:55 2009 +0100
     1.3 @@ -2,11 +2,11 @@
     1.4  
     1.5  PACKAGE="mesa"
     1.6  VERSION="7.4.4"
     1.7 -CATEGORY="misc"
     1.8 +CATEGORY="x-window"
     1.9  SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
    1.10  MAINTAINER="pascal.bellard@slitaz.org"
    1.11  DEPENDS="glibc-base expat libdrm xorg-libX11 xorg-libXau xorg-libXdamage \
    1.12 -xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm"
    1.13 +xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm libdrm"
    1.14  BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \
    1.15  xorg-dri2proto xorg-glproto xorg-damageproto xorg-xproto xorg-fixesproto xorg-xextproto \
    1.16  xorg-libX11-dev xorg-libXdamage-dev xorg-libXfixes-dev xorg-libXt-dev \
    1.17 @@ -21,7 +21,18 @@
    1.18  compile_rules()
    1.19  {
    1.20  	ln -s $src $PACKAGE-$VERSION 2>/dev/null
    1.21 +
    1.22 +	# Get and untar demo files
    1.23 +	if [ ! -f $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2 ]; then
    1.24 +		wget $SF_MIRROR/mesa3d/MesaDemos-$VERSION.tar.bz2 \
    1.25 +			-P $SOURCES_REPOSITORY
    1.26 +	fi
    1.27 +	echo -n "Untaring MesaDemos-$VERSION.tar.bz2"
    1.28 +	tar xjf $SOURCES_REPOSITORY/MesaDemos-$VERSION.tar.bz2
    1.29 +	status
    1.30 +
    1.31  	cd $src
    1.32 +	# --with-dri-driverdir=/usr/lib/X11/modules/dri ?
    1.33  	sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
    1.34  	./configure \
    1.35  		--prefix=/usr \
    1.36 @@ -38,7 +49,9 @@
    1.37  {
    1.38  	mkdir -p $fs/usr/lib
    1.39  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.40 -	cp -a $_pkg/usr/lib/dri $fs/usr/lib
    1.41 +
    1.42 +	# DRI drivers are include in the package mesa-dri-*
    1.43 +	#cp -a $_pkg/usr/lib/dri $fs/usr/lib
    1.44  
    1.45  	# libGLU is included in the package libglu-mesa
    1.46  	rm -r -f $fs/usr/lib/libGLU*