SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mesa-demos"

# SliTaz package receipt.

PACKAGE="mesa-demos"
VERSION="8.4.0"
CATEGORY="development"
SHORT_DESC="Mesa GLX demos progs."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.mesa3d.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="ftp://ftp.freedesktop.org/pub/mesa/demos/$VERSION/$TARBALL"

DEPENDS="glew"
BUILD_DEPENDS="glew-dev mesa-dev talloc-dev libglu-mesa-dev \
libglw-mesa-dev libegl-mesa pkg-config udev-dev"

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

# Rules to configure and make the package.
compile_rules()
{ 
    cd $src
    # Binutils 2.22 break many packages build without LDFLAGS set correctly.
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
    ./configure \
        --prefix=/usr \
            $CONFIGURE_ARGS &&
    make  &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    cp $install/usr/bin/glxinfo $fs/usr/bin
    cp $install/usr/bin/glxgears $fs/usr/bin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)