wok-next annotate mesa/receipt @ rev 5476
Fixed a typo in vlc depends.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed May 05 23:43:46 2010 -0400 (2010-05-05) |
parents | 19dad1e8892c |
children | 3bd7d606c2e3 |
rev | line source |
---|---|
pascal@592 | 1 # SliTaz package receipt. |
pascal@592 | 2 |
pascal@592 | 3 PACKAGE="mesa" |
pankso@5298 | 4 VERSION="7.8.1" |
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/" |
pankso@5298 | 18 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$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@5298 | 28 wget ftp://ftp.freedesktop.org/pub/mesa/$VERSION/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 \ |
pankso@5298 | 43 --disable-gallium-intel \ |
pankso@5298 | 44 --disable-gallium \ |
rcx@3695 | 45 $CONFIGURE_ARGS && |
pankso@3007 | 46 make && |
pascal@592 | 47 make DESTDIR=$PWD/_pkg install |
pascal@592 | 48 } |
pascal@592 | 49 |
pascal@592 | 50 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@592 | 51 genpkg_rules() |
pascal@592 | 52 { |
pankso@3007 | 53 mkdir -p $fs/usr/lib |
pankso@3007 | 54 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@4421 | 55 |
pankso@4421 | 56 # DRI drivers are include in the package mesa-dri-* |
pankso@4421 | 57 #cp -a $_pkg/usr/lib/dri $fs/usr/lib |
pankso@4170 | 58 |
rcx@3695 | 59 # libGLU is included in the package libglu-mesa |
rcx@3695 | 60 rm -r -f $fs/usr/lib/libGLU* |
pankso@4170 | 61 |
rcx@3695 | 62 #libGLw is included in the package libglw-mesa |
rcx@3695 | 63 rm -r -f $fs/usr/lib/libGLw* |
pascal@592 | 64 } |