wok annotate mesa/receipt @ rev 7846

Up: linuxqq v1.0.2
author Liu Peng <rocky@slitaz.org>
date Tue Dec 28 16:07:50 2010 +0000 (2010-12-28)
parents 0d287952aabb
children c483f6f1044b
rev   line source
pascal@592 1 # SliTaz package receipt.
pascal@592 2
pascal@592 3 PACKAGE="mesa"
gokhlayeh@6993 4 VERSION="7.9"
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 \
slaxemulator@7161 9 xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXxf86vm libxcb"
jozee@5018 10 SUGGESTED="nvidia"
pankso@4170 11 BUILD_DEPENDS="$DEPENDS slitaz-toolchain expat-dev lesstif lesstif-dev libdrm-dev \
slaxemulator@7161 12 libdrm-intel libdrm-nouveau libdrm-radeon xorg-dri2proto xorg-glproto xorg-damageproto \
slaxemulator@7161 13 xorg-xproto xorg-fixesproto xorg-xextproto xorg-libX11-dev xorg-libXdamage-dev \
slaxemulator@7161 14 xorg-libXfixes-dev xorg-libXt-dev xorg-libICE-dev xorg-libSM-dev \
slaxemulator@7161 15 xorg-xf86vidmodeproto xorg-libXxf86vm-dev pkg-config wget talloc-dev libxml2-python \
slaxemulator@7161 16 libxcb-dev file"
pascal@592 17 SOURCE="Mesa"
pascal@592 18 TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
pascal@592 19 WEB_SITE="http://www.mesa3d.org/"
pankso@5298 20 WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
rcx@3695 21 PROVIDE="libgl"
pascal@592 22
pascal@592 23 # Rules to configure and make the package.
pascal@592 24 compile_rules()
rcx@3695 25 {
pankso@3007 26 ln -s $src $PACKAGE-$VERSION 2>/dev/null
pankso@4421 27
pascal@592 28 cd $src
pankso@4421 29 # --with-dri-driverdir=/usr/lib/X11/modules/dri ?
pankso@3007 30 sed 's@FLAGS=\"-g@FLAGS=\"@' -i configure &&
rcx@3695 31 ./configure \
rcx@3695 32 --prefix=/usr \
rcx@3695 33 --with-x \
rcx@3695 34 --enable-motif \
gokhlayeh@6993 35 --enable-gallium-radeon \
gokhlayeh@6993 36 --enable-gallium-nouveau \
gokhlayeh@6993 37 --enable-xcb \
rcx@3695 38 $CONFIGURE_ARGS &&
gokhlayeh@6993 39 # Also build nouveau_vieux_dri.so.
pascal@5781 40 make -j 4 &&
gokhlayeh@6993 41 make -j 4 -C src/mesa/drivers/dri/nouveau &&
gokhlayeh@6993 42 make DESTDIR=$PWD/_pkg install &&
gokhlayeh@6993 43 make -C src/mesa/drivers/dri/nouveau DESTDIR=$PWD/_pkg install
pascal@592 44 }
pascal@592 45
pascal@592 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 47 genpkg_rules()
pascal@592 48 {
pankso@3007 49 mkdir -p $fs/usr/lib
pankso@3007 50 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@4421 51
pankso@4421 52 # DRI drivers are include in the package mesa-dri-*
pankso@4421 53 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
pankso@4170 54
rcx@3695 55 # libGLU is included in the package libglu-mesa
rcx@3695 56 rm -r -f $fs/usr/lib/libGLU*
pankso@4170 57
rcx@3695 58 #libGLw is included in the package libglw-mesa
rcx@3695 59 rm -r -f $fs/usr/lib/libGLw*
jozee@5537 60
jozee@5537 61 #libEGL is included in the package libegl-mesa
jozee@5537 62 rm -r -f $fs/usr/lib/libEGL*
pascal@592 63 }