193.12. mesa-demos-9.0.0
Mesa EGL, GLES2 and Vulkan demos for Wayland — es2gears_wayland, eglinfo, vkgears
9.0.0-1 · MIT · 0.2 SBU · 2.8 MiB, 21 files · 42_graphics, 109 of 189 · ports/core/gpu/mesa-demos
Homepage: https://gitlab.freedesktop.org/mesa/demos
Why it is in KDOS. The comment above the 3 ports from mesa-demos to vulkan-tools in script/phases/42_graphics/packages.d/gpu.txt:
THE GRAPHICS TOOLS ARE THE WAYLAND AND EGL ONES: es2gears_wayland and eglinfo from mesa-demos, glmark2-es2-wayland, and vkcube/vulkaninfo from vulkan-tools, which are also what says whether the machine has a Vulkan driver at all. mesa is built with GLX and its X11 platform for the X11 programs that run under Xwayland, but mesa-demos is built -Dx11=disabled, so glxgears and glxinfo are not among its programs.
Depends on: meson, ninja, pkgconf, mesa, libdrm, glu, wayland, wayland-protocols, libxkbcommon, libdecor, vulkan-loader, glslang.
Required by (1): kinfocenter.
Sources: mesa-demos-9.0.0.tar.xz (14.2 MiB). Every step kpkg takes applies to this port.
Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.
-Dx11=disabled, line 23: libX11
Install: script/chroot/exec.sh bash -c 'source script/phases/42_graphics/phase.env && kpkg install mesa-demos'
build.sh:
export CFLAGS="$CFLAGS -D_GNU_SOURCE -include sys/types.h"
meson setup build \
--prefix=/usr --libdir=lib --sysconfdir=/etc \
--buildtype=release \
-Degl=enabled \
-Dgles1=disabled \
-Dgles2=enabled \
-Dwayland=enabled \
-Dvulkan=enabled \
-Dx11=disabled \
-Dglut=disabled \
-Dosmesa=disabled \
-Dlibdrm=enabled \
-Dwith-system-data-files=true
meson compile -C build
DESTDIR=$PKG meson install --no-rebuild -C build
install -Dm644 "$SRC/src/egl/opengl/eglinfo.c" "$PKG/usr/share/licenses/$name/eglinfo.c"
Programs: eglgears_wayland, eglinfo, eglkms, egltri_wayland, es2gears_wayland, peglgears, vkgears.
Directories: /usr/share/licenses/mesa-demos, /usr/share/mesa-demos.