SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mesa"

# SliTaz package receipt.

PACKAGE="mesa"
VERSION="9.2.5"
CATEGORY="x-window"
SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.mesa3d.org/"

SOURCE="Mesa"
TARBALL="${SOURCE}Lib-$VERSION.tar.bz2"
WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/older-versions/${VERSION%%.*}.x/$VERSION/$TARBALL"

PROVIDE="libgl"
SUGGESTED="nvidia"
DEPENDS="expat libdrm libpthread-stubs udev xorg-libXdamage xorg-libXt 
    xorg-libXxf86vm"
BUILD_DEPENDS="autoconf automake expat-dev file lesstif-dev libdrm-dev 
    libdrm-nouveau libpthread-stubs-dev libtool libxml2-python llvm 
    pkg-config talloc udev-dev xorg-dri2proto xorg-glproto xorg-imake 
    xorg-libXdamage-dev xorg-libXt-dev xorg-libXxf86vm-dev 
    xorg-makedepend xorg-server-dev"

# What is the latest version available today?
current_version()
{
    wget -O - 'https://gitlab.freedesktop.org/mesa/mesa/-/tags?sort=updated_desc' 2>/dev/null | \
    sed '/item-title/!d;/-rc/d;s|.*">[a-z-]*||;s|[<-].*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    find . -name 'nouveau*.h' | \
        xargs sed -i 's|libdrm/nouveau.h|libdrm/nouveau/nouveau.h|'

    ./autogen.sh        \
        --prefix=/usr    \
        $CONFIGURE_ARGS &&
    make $MAKEFLAGS &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $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*
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)