wok annotate mesa/receipt @ rev 3010

Add Xorg 7.4 dri2proto and glproto
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 11 22:26:05 2009 +0200 (2009-05-11)
parents 88bf5a2b55c3
children 7668d7dd0e4e
rev   line source
pascal@592 1 # SliTaz package receipt.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
pankso@3007 4 VERSION="7.4.1"
pascal@745 5 CATEGORY="misc"
pascal@592 6 SHORT_DESC="3D Graphics Library."
pascal@592 7 MAINTAINER="pascal.bellard@slitaz.org"
pankso@3007 8 DEPENDS="xorg libdrm xorg-libXxf86vm"
pankso@3007 9 BUILD_DEPENDS="xorg-dev xorg-xextproto libdrm-dev xorg-libXxf86vm-dev"
pascal@592 10 SOURCE="Mesa"
pascal@592 11 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
pascal@592 12 WEB_SITE="http://www.mesa3d.org/"
pascal@592 13 WGET_URL="$SF_MIRROR/mesa3d/$TARBALL"
b1+slitaz@1837 14 PROVIDE="libgl libglu"
pascal@592 15
pascal@592 16 # Rules to configure and make the package.
pascal@592 17 compile_rules()
pascal@592 18 {
pankso@3007 19 ln -s $src $PACKAGE-$VERSION 2>/dev/null
pascal@592 20 cd $src
pankso@3007 21 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
pankso@3007 22 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pankso@3007 23 make &&
pascal@592 24 make DESTDIR=$PWD/_pkg install
pascal@592 25 }
pascal@592 26
pascal@592 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 28 genpkg_rules()
pascal@592 29 {
pankso@3007 30 mkdir -p $fs/usr/lib
pankso@3007 31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@3007 32 cp -a $_pkg/usr/lib/dri $fs/usr/lib
pankso@3007 33 # Have all dri modules in splited packages : mesa-dri-i915, etc ?
pankso@3007 34 for mod in i810 mach64 swrast tdfx
pankso@3007 35 do
pankso@3007 36 rm $fs/usr/lib/dri/${mod}_dri.so
pankso@3007 37 done
pascal@592 38 }