# HG changeset patch # User Stanislas Leduc # Date 1718046294 0 # Node ID 4fd464abe902f698694e246448ef6c187403e831 # Parent 9cfcf18b0d6c8b7cdda01db4544064e4197aec89 Build full mesa features and split it diff -r 9cfcf18b0d6c -r 4fd464abe902 clang/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,53 @@ +# SliTaz package receipt. + +PACKAGE="clang" +VERSION="13.0.0" +CATEGORY="development" +SHORT_DESC="C language family frontend for LLVM." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://clang.llvm.org/" +TARBALL="$PACKAGE-$VERSION.src.tar.xz" +WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL" + +DEPENDS="llvm-lib" +BUILD_DEPENDS="llvm ninja cmake" + +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \ + sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + # Use MinSizeRel instead Release to reduce size + + mkdir build && cd build + CC=gcc CXX=g++ \ + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCLANG_LINK_CLANG_DYLIB=ON \ + -DLLVM_ENABLE_RTTI=ON \ + -DLLVM_LINK_LLVM_DYLIB=ON \ + -Wno-dev \ + -G Ninja \ + .. + + ninja + DESTDIR=$install ninja install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/*.so* $fs/usr/lib + cp -a $install/usr/lib/clang $fs/usr/lib + cp -a $install/usr/lib $fs/usr + cp -a $install/usr/include $fs/usr +} diff -r 9cfcf18b0d6c -r 4fd464abe902 directx-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/directx-headers/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="directx-headers" +VERSION="1.600.10" +CATEGORY="development" +SHORT_DESC="Direct3D 12 headers" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="https://github.com/microsoft/DirectX-Headers" +WGET_URL="git|https://github.com/microsoft/DirectX-Headers.git" +BRANCH="v$VERSION" + +DEPENDS="" +BUILD_DEPENDS="git meson" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir mbuild && cd mbuild + meson setup \ + --prefix=/usr \ + --libdir=lib \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --buildtype=release \ + -D build-test=false \ + .. + + ninja build + DESTDIR=$install ninja install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/lib* $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libclc/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libclc/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,38 @@ +# SliTaz package receipt. + +PACKAGE="libclc" +VERSION="13.0.0" +CATEGORY="development" +SHORT_DESC="OpenCL 1.1 libraries" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://libclc.llvm.org/" +TARBALL="$PACKAGE-$VERSION.src.tar.xz" +WGET_URL="https://github.com/llvm/llvm-project/releases/download/llvmorg-$VERSION/$TARBALL" + +BUILD_DEPENDS="clang spirv-llvm-translator cmake" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir build && cd build + CC=gcc CXX=g++ \ + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_DATADIR=/usr/lib \ + -Wno-dev \ + .. + + make + make DESTDIR=$install install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/clc $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libd3d9-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libd3d9-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libd3d9-mesa" +VERSION="21.3.5" +CATEGORY="development" +SHORT_DESC="Mesa Direct3D9 API." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm mesa-dri" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/d3d $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libgbm-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libgbm-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libgbm-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa gbm library." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libgbm.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libglapi-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libglapi-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libglapi-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="OpenGL API library." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libglapi.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libglvnd-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libglvnd-dev/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,18 @@ +# SliTaz package receipt. + +PACKAGE="libglvnd-dev" +VERSION="1.3.3" +CATEGORY="development" +SHORT_DESC="Vendor neutral GL dispatch library - development files" +MAINTAINER="maintainerd@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://gitlab.freedesktop.org/glvnd/libglvnd" +WANTED="libglvnd" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libglvnd/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libglvnd/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="libglvnd" +VERSION="1.3.3" +CATEGORY="x-window" +SHORT_DESC="Vendor neutral GL dispatch library" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="https://gitlab.freedesktop.org/glvnd/libglvnd" +WGET_URL="git|https://gitlab.freedesktop.org/glvnd/libglvnd.git" +BRANCH="0f0d49f0" + +DEPENDS="" +BUILD_DEPENDS="git automake libtool xorg-glproto" + +# Rules to configure and make the package. +compile_rules() +{ + NOCONFIGURE=1 ./autogen.sh + autoreconf -vif + + ./configure \ + --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/lib*so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libglx-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libglx-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="libglx-mesa" +VERSION="21.3.5" +CATEGORY="development" +SHORT_DESC="OpenGL GLX vendor library." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +PROVIDE="libglx" +DEPENDS="gcc-lib-base glibc-base mesa" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libGLX*.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libopencl-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libopencl-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="libopencl-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa OpenCL ICD library." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/etc $fs + cp -a $install/usr/lib/gallium-pipe $fs/usr/lib + cp -a $install/usr/lib/lib*OpenCL*.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libos-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libos-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libos-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa off-screen library." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="llvm-lib libglapi-mesa" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libOS*.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libva-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libva-dev/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="libva-dev" +VERSION="2.13.0" +CATEGORY="development" +SHORT_DESC="VA (Video Acceleration API) devel" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WANTED="libva" +WEB_SITE="https://github.com/intel/libva" + +DEPENDS="libva" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib + cp -a $install/usr/include $fs/usr +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libva/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libva/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="libva" +VERSION="2.13.0" +CATEGORY="x-window" +SHORT_DESC="VA (Video Acceleration API) library" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://github.com/intel/libva" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/intel/libva/archive/refs/tags/$VERSION.tar.gz" + +BUILD_DEPENDS="xorg-libX11-dev xorg-libXext-dev \ +xorg-dev-proto libdrm-dev meson" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir mbuild && cd mbuild + meson setup \ + --prefix=/usr \ + --libdir=lib \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --buildtype=release \ + .. + + ninja build + DESTDIR=$install ninja 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 +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libxatracker-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libxatracker-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libxatracker-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa XA tracker for vmware library." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libxatracker.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 libxvmc-mesa/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libxvmc-mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="libxvmc-mesa" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa XvMC drivers." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm llvm-lib libdrm-nouveau libdrm-radeon" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libXvMC*.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 llvm-lib/receipt --- a/llvm-lib/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/llvm-lib/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -9,6 +9,8 @@ WEB_SITE="https://llvm.org/" WANTED="llvm" +DEPENDS="libatomic libffi libtinfo libxml2" + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r 9cfcf18b0d6c -r 4fd464abe902 llvm/receipt --- a/llvm/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/llvm/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -32,6 +32,7 @@ cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLLVM_ENABLE_FFI=ON \ + -DLLVM_ENABLE_RTTI=ON \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DLLVM_BUILD_LLVM_DYLIB=ON \ -DLLVM_LINK_LLVM_DYLIB=ON \ diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-ati/receipt --- a/mesa-dri-ati/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-ati/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -9,7 +9,7 @@ WEB_SITE="https://www.mesa3d.org/" #PROVIDE="xorg-xf86-video-ati" -DEPENDS="libdrm-radeon mesa mesa-dri" +DEPENDS="libdrm-radeon mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-crocus/receipt --- a/mesa-dri-crocus/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-crocus/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="libdrm-intel mesa mesa-dri" +DEPENDS="libdrm-intel mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-d3d12/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mesa-dri-d3d12/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,19 @@ +# SliTaz package receipt. + +PACKAGE="mesa-dri-d3d12" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa classic DRI + Gallium3D drivers for D3D12 API." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm-nouveau mesa-dri" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/dri + ln -s kms_swrast_dri.so $fs/usr/lib/dri/d3d12_dri.so +} diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-intel/receipt --- a/mesa-dri-intel/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-intel/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="libdrm-intel mesa mesa-dri" +DEPENDS="libdrm-intel mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-iris/receipt --- a/mesa-dri-iris/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-iris/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="libdrm-intel mesa mesa-dri" +DEPENDS="libdrm-intel mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-nouveau/receipt --- a/mesa-dri-nouveau/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-nouveau/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="libdrm-nouveau mesa" +DEPENDS="libdrm-nouveau mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-virtio/receipt --- a/mesa-dri-virtio/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-virtio/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="libdrm mesa mesa-dri" +DEPENDS="libdrm mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri-vmwgfx/receipt --- a/mesa-dri-vmwgfx/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri-vmwgfx/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -8,7 +8,7 @@ LICENSE="MIT" WEB_SITE="https://www.mesa3d.org/" -DEPENDS="expat libdrm linux-agp linux-drm mesa mesa-dri" +DEPENDS="expat libdrm linux-agp linux-drm mesa-dri" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-dri/receipt --- a/mesa-dri/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa-dri/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -10,7 +10,7 @@ DEPENDS="expat libdrm linux-agp llvm-lib \ linux-drm libdrm-amdgpu libdrm-radeon \ -libdrm-nouveau libdrm-intel" +libdrm-nouveau libdrm-intel libglapi-mesa" WANTED="mesa" # Rules to gen a SliTaz package suitable for Tazpkg. diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-va/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mesa-va/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,23 @@ +# SliTaz package receipt. + +PACKAGE="mesa-va" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa VA-API drivers." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="llvm-lib libdrm-radeon libdrm-nouveau libdrm-amdgpu" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/dri + cp -a $install/usr/lib/dri/nouveau_drv_video.so $fs/usr/lib/dri/va_drv_video.so + + for drv in "nouveau" "r300" "r600" "radeonsi"; do + ln -s va_drv_video.so $fs/usr/lib/dri/"$drv"_drv_video.so + done +} diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-vdpau/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mesa-vdpau/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,27 @@ +# SliTaz package receipt. + +PACKAGE="mesa-vdpau" +VERSION="21.3.5" +CATEGORY="x-window" +SHORT_DESC="Mesa VDPAU drivers." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="llvm-lib libdrm-nouveau libdrm-amdgpu" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/vdpau + + cp -a $install/usr/lib/vdpau/libvdpau_nouveau.so.1.0.0 \ + $fs/usr/lib/vdpau/libvdpau_drv.so + + for drv in "nouveau" "r300" "r600" "radeonsi"; do + ln -s libvdpau_drv.so $fs/usr/lib/vdpau/"$drv"_drv_video.so.1.0.0 + ln -s libvdpau_drv.so $fs/usr/lib/vdpau/"$drv"_drv_video.so.1.0 + ln -s libvdpau_drv.so $fs/usr/lib/vdpau/"$drv"_drv_video.so + done +} diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa-vulkan/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mesa-vulkan/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="mesa-vulkan" +VERSION="21.3.5" +CATEGORY="development" +SHORT_DESC="Mesa Vulkan drivers." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://www.mesa3d.org/" + +DEPENDS="libdrm llvm-lib" +WANTED="mesa" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/libVk*.so* $fs/usr/lib + cp -a $install/usr/lib/libvulkan*.so* $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 mesa/receipt --- a/mesa/receipt Mon Jun 03 16:29:38 2024 +0000 +++ b/mesa/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -2,7 +2,7 @@ PACKAGE="mesa" VERSION="21.3.5" -CATEGORY="x-window" +CATEGORY="meta" SHORT_DESC="3D Graphics Library that is an open-source implementaton of OpenGL." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" @@ -13,16 +13,18 @@ PROVIDE="mesa" DEPENDS="expat libdrm xorg-libXdamage xorg-libXxf86vm xorg-libXt \ -xorg-libxshmfence udev libvdpau" #libpthread-stubs +xorg-libxshmfence udev" #libpthread-stubs + +DEPENDS="libegl-mesa libgbm-mesa libglapi-mesa libglx-mesa \ +libopencl-mesa libos-mesa libxvmc-mesa libxatracker-mesa mesa-vulkan" 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" -# libpthread-stubs-dev llvm xorg-dri3proto xorg-presentproto -# --with-gallium-drivers= \ +xorg-libpciaccess-dev libtool meson054 llvm python3-mako libvdpau-dev \ +elfutils-dev libglvnd-dev directx-headers libclc libva-dev clang polly cmake" +# libpthread-stubs-dev xorg-dri3proto xorg-presentproto # What is the latest version available today? current_version() @@ -35,15 +37,16 @@ compile_rules() { DRI_DRIVERS="i915,i965,r100,r200,nouveau" - GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast,virgl,iris,crocus" - + GALLIUM_DRIVERS="nouveau,r300,r600,svga,radeonsi,swrast,virgl,iris,crocus,d3d12" # 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 + # use CFLAGS with arch i586 instead i486 # see https://bugs.freedesktop.org/show_bug.cgi?id=93089 - VULKAN_DRIVERS="" + export CFLAGS="-march=i586 -Os -pipe -fomit-frame-pointer" + export CXXFLAGS="$CFLAGS" + VULKAN_DRIVERS="amd,intel,swrast" meson _build \ --prefix=/usr \ @@ -54,9 +57,11 @@ -Dplatforms=x11 \ -Ddri-drivers=$DRI_DRIVERS \ -Dgallium-drivers=$GALLIUM_DRIVERS \ + -Dgallium-nine=true \ + -Dgallium-opencl=icd \ -Dvulkan-drivers=$VULKAN_DRIVERS \ -Dvulkan-layers=device-select \ - -Dglvnd=false \ + -Dglvnd=true \ -Dllvm=enabled \ -Dshared-llvm=enabled \ -Dshared-glapi=enabled \ @@ -64,6 +69,7 @@ -Dgles1=enabled \ -Dgles2=enabled \ -Dopengl=true \ + -Dosmesa=true \ -Dglx=dri \ -Dstrip=true @@ -76,6 +82,11 @@ { 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 + + # Remove libs provide by others mesa split + rm $fs/usr/lib/libEGL*.so* $fs/usr/lib/libGLX*.so* + rm $fs/usr/lib/libOS*.so* $fs/usr/lib/libglapi.so* + rm $fs/usr/lib/libvulkan*.so* $fs/usr/lib/libVk*.so* + rm $fs/usr/lib/libgbm.so* $fs/usr/lib/libxatracker.so* + rm $fs/usr/lib/lib*OpenCL* $fs/usr/lib/libXvMC*.so* } diff -r 9cfcf18b0d6c -r 4fd464abe902 spirv-headers/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spirv-headers/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,39 @@ +# SliTaz package receipt. + +PACKAGE="spirv-headers" +VERSION="1.3.283.0" +CATEGORY="development" +SHORT_DESC="Direct3D 12 headers" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://github.com/KhronosGroup/SPIRV-Headers" +WGET_URL="https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-$VERSION/$TARBALL" + +DEPENDS="" +BUILD_DEPENDS="cmake" + +# Rules to configure and make the package. +compile_rules() +{ + mkdir build && cd build + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DCMAKE_INSTALL_DATADIR=/usr/lib \ + -Wno-dev \ + .. + + make + make DESTDIR=$install install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r 9cfcf18b0d6c -r 4fd464abe902 spirv-llvm-translator/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spirv-llvm-translator/receipt Mon Jun 10 19:04:54 2024 +0000 @@ -0,0 +1,49 @@ +# SliTaz package receipt. + +PACKAGE="spirv-llvm-translator" +VERSION="13.0.1" +CATEGORY="development" +SHORT_DESC="LLVM/SPIR-V Bi-Directional Translator" +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/" +TARBALL="$PACKAGE-$VERSION.tar.xz" +WGET_URL="https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v$VERSION.tar.gz" + +DEPENDS="llvm" +BUILD_DEPENDS="cmake llvm spirv-headers" + +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/llvm/llvm-project/releases 2>/dev/null | \ + sed '/-rc/d;/archive.*tar/!d;s|.*/[a-z-]*\(.*\).tar.*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_SHARED_LIBS=ON \ + -DLLVM_INCLUDE_TESTS=OFF \ + -DCMAKE_BUILD_TYPE=Release \ + -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR=/usr/include/spirv \ + -G 'Unix Makefiles' \ + -Wno-dev \ + .. + + make + make llvm-spirv + make install DESTDIR=$install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a $src/build/tools/llvm-spirv/llvm-spirv $fs/usr/bin + cp -a $install/usr/lib $fs/usr + #cp -a $install/usr/include $fs/usr +}