SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mesa-wayland"

# SliTaz package receipt.

PACKAGE="mesa-wayland"
VERSION="21.3.5"
CATEGORY="x-window"
SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
SOURCE="mesa"
TARBALL="$SOURCE-$VERSION.tar.xz"
WEB_SITE="https://www.mesa3d.org/"
WGET_URL="https://archive.mesa3d.org/$TARBALL"
PROVIDE="mesa"

DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt \
xorg-libxshmfence udev libvdpau wayland" #libpthread-stubs

BUILD_DEPENDS="expat-dev libdrm-dev xorg-libXdamage-dev pkg-config \
xorg-libXxf86vm-dev xorg-libXt-dev xorg-libXvMC-dev xorg-libXv-dev \
xorg-dri2proto xorg-glproto talloc xorg-makedepend lesstif-dev \
libxml2-python xorg-imake xorg-libxshmfence-dev udev-dev file \
xorg-libpciaccess-dev libtool llvm meson054 python3-mako libvdpau-dev \
elfutils-dev wayland-dev wayland-protocols"
# libpthread-stubs-dev llvm  xorg-dri3proto xorg-presentproto
# --with-gallium-drivers= \

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

# Rules to configure and make the package.
compile_rules()
{
    DRI_DRIVERS="i915,i965,r100,r200,nouveau"
    GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast"


    # Use meson 0.54, issue with meson 0.62
    # see https://gitlab.freedesktop.org/mesa/mesa/-/issues/5576

    # Disable vulkan drivers, seem issue with i486
    # see https://bugs.freedesktop.org/show_bug.cgi?id=93089
    VULKAN_DRIVERS=""

    meson _build \
            --prefix=/usr \
            --libdir=lib \
            --bindir=/usr/bin \
            --sbindir=/usr/sbin \
            --buildtype=release \
    -Dplatforms=x11,wayland \
    -Ddri-drivers=$DRI_DRIVERS \
    -Dgallium-drivers=$GALLIUM_DRIVERS \
    -Dvulkan-drivers=$VULKAN_DRIVERS \
    -Dvulkan-layers=device-select \
    -Dglvnd=false \
    -Dllvm=enabled \
    -Dshared-llvm=enabled \
    -Dshared-glapi=enabled \
    -Degl=enabled \
    -Dgles1=enabled \
    -Dgles2=enabled \
    -Dopengl=true \
    -Dglx=dri \
    -Dstrip=true

    ninja -C _build
    DESTDIR=$install ninja -C _build 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
        cp -a $install/usr/include              $fs/usr
        cp -a $install/usr/lib/pkgconfig        $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)