wok annotate mesa/receipt @ rev 8078

Up: mesa 7.10
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Jan 22 02:37:34 2011 +0100 (2011-01-22)
parents d7c954620e6a
children 718b6ab22652
rev   line source
pascal@592 1 # SliTaz package receipt.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
gokhlayeh@8078 4 VERSION="7.10"
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"
gokhlayeh@8078 8 DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt"
jozee@5018 9 SUGGESTED="nvidia"
gokhlayeh@8078 10 BUILD_DEPENDS="$DEPENDS expat-dev libdrm-dev xorg-libXdamage-dev \
gokhlayeh@8078 11 xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
gokhlayeh@8078 12 pkg-config talloc libxml2 python xorg-makedepend"
pascal@592 13 SOURCE="Mesa"
pascal@592 14 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
pascal@592 15 WEB_SITE="http://www.mesa3d.org/"
pankso@5298 16 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
rcx@3695 17 PROVIDE="libgl"
pascal@592 18
pascal@592 19 # Rules to configure and make the package.
pascal@592 20 compile_rules()
rcx@3695 21 {
pankso@3007 22 ln -s $src $PACKAGE-$VERSION 2>/dev/null
pankso@4421 23
pascal@592 24 cd $src
rcx@3695 25 ./configure \
rcx@3695 26 --prefix=/usr \
rcx@3695 27 --with-x \
rcx@3695 28 --enable-motif \
gokhlayeh@6993 29 --enable-gallium-radeon \
gokhlayeh@6993 30 --enable-gallium-nouveau \
gokhlayeh@6993 31 --enable-xcb \
rcx@3695 32 $CONFIGURE_ARGS &&
pascal@5781 33 make -j 4 &&
gokhlayeh@8078 34 make DESTDIR=$PWD/_pkg install
pascal@592 35 }
pascal@592 36
pascal@592 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 38 genpkg_rules()
pascal@592 39 {
pankso@3007 40 mkdir -p $fs/usr/lib
pankso@3007 41 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@4421 42
pankso@4421 43 # DRI drivers are include in the package mesa-dri-*
pankso@4421 44 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
pankso@4170 45
rcx@3695 46 # libGLU is included in the package libglu-mesa
rcx@3695 47 rm -r -f $fs/usr/lib/libGLU*
pankso@4170 48
rcx@3695 49 #libGLw is included in the package libglw-mesa
rcx@3695 50 rm -r -f $fs/usr/lib/libGLw*
jozee@5537 51
jozee@5537 52 #libEGL is included in the package libegl-mesa
jozee@5537 53 rm -r -f $fs/usr/lib/libEGL*
pascal@592 54 }