wok-next annotate mesa/receipt @ rev 7161

Fixed mesa to compile in clean chroot. Mesa also doesn't need talloc as depend to run.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Nov 07 02:23:23 2010 +0000 (2010-11-07)
parents 5b982ce8d9d3
children d7c954620e6a
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-gl-osmesa \
rcx@3695 35 --enable-motif \
gokhlayeh@6993 36 --enable-gallium-radeon \
gokhlayeh@6993 37 --enable-gallium-nouveau \
gokhlayeh@6993 38 --enable-xcb \
rcx@3695 39 $CONFIGURE_ARGS &&
gokhlayeh@6993 40 # Also build nouveau_vieux_dri.so.
pascal@5781 41 make -j 4 &&
gokhlayeh@6993 42 make -j 4 -C src/mesa/drivers/dri/nouveau &&
gokhlayeh@6993 43 make DESTDIR=$PWD/_pkg install &&
gokhlayeh@6993 44 make -C src/mesa/drivers/dri/nouveau DESTDIR=$PWD/_pkg install
pascal@592 45 }
pascal@592 46
pascal@592 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@592 48 genpkg_rules()
pascal@592 49 {
pankso@3007 50 mkdir -p $fs/usr/lib
pankso@3007 51 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@4421 52
pankso@4421 53 # DRI drivers are include in the package mesa-dri-*
pankso@4421 54 #cp -a $_pkg/usr/lib/dri $fs/usr/lib
pankso@4170 55
rcx@3695 56 # libGLU is included in the package libglu-mesa
rcx@3695 57 rm -r -f $fs/usr/lib/libGLU*
pankso@4170 58
rcx@3695 59 #libGLw is included in the package libglw-mesa
rcx@3695 60 rm -r -f $fs/usr/lib/libGLw*
jozee@5537 61
jozee@5537 62 #libEGL is included in the package libegl-mesa
jozee@5537 63 rm -r -f $fs/usr/lib/libEGL*
pascal@592 64 }