SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mesa"

# SliTaz package receipt.

PACKAGE="mesa"
VERSION="7.10.2"
CATEGORY="x-window"
SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
MAINTAINER="pascal.bellard@slitaz.org"
SUGGESTED="nvidia"
SOURCE="Mesa"
TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
WEB_SITE="http://www.mesa3d.org/"
WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/$VERSION/$TARBALL"
PROVIDE="libgl"

DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt"
BUILD_DEPENDS="$DEPENDS expat-dev libdrm-dev xorg-libXdamage-dev \
xorg-libXxf86vm-dev xorg-libXt-dev xorg-dri2proto xorg-glproto \
pkg-config talloc xorg-makedepend lesstif libxml2-python xorg-imake \
lesstif-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    patch -Np1 -i $stuff/nouveau-fix-header.patch
    ./configure \
        --prefix=/usr \
        --with-x \
        --enable-motif \
        --enable-gallium-radeon \
        --enable-gallium-nouveau \
        --enable-xcb \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib

    # DRI drivers are include in the package mesa-dri-*
    #cp -a $_pkg/usr/lib/dri $fs/usr/lib

    # libGLU is included in the package libglu-mesa
    rm -r -f $fs/usr/lib/libGLU*

    #libGLw is included in the package libglw-mesa
    rm -r -f $fs/usr/lib/libGLw*
    
    #libEGL is included in the package libegl-mesa
    rm -r -f $fs/usr/lib/libEGL*
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)