🔒 Repository is read-only – file editing is disabled.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
pkgname: mesa
pkgver: '26.3.0'
pkgrel: '1'
pkgdesc: Mesa is an OpenGL compatible 3D graphics library.
url: 'https://www.xorg-mesa3d.org'
arch: x86_64
license:
- custom
# FIX: Dodano zależności runtime
depends:
- libdisplay-info
- libglvnd
- xorg-libdrm
- wayland
- xorg-libxshmfence
- xorg-libxdamage
- xorg-libxext
- xorg-libxxf86vm
- expat
- lm-sensors
- libva
- libvdpau
- llvm
- libedit
- libelf
- libpng
- libxcb
- spirv-tools
- systemd
- xcb-util-keysyms
- xorg-libx11
- zstd
makedepends:
- spirv-llvm-translator
- spirv-tools
- libdisplay-info
- meson
- ninja
- libclc
- python-ply
- rust-bindgen
- cbindgen
- python-pycparser
- xorgproto
- pkgconf
- libtool
- xorg-xrandr
- wayland
- python-mako
- wayland-protocols
- xorg-libx11
- xorg-libdrm
- xorg-libxext
- xorg-libxdamage
- expat
- llvm
- elfutils
- xorg-libxshmfence
- python-yaml
- libva
- libvdpau
- valgrind
- lm-sensors
- xorg-libxvmc
- xorg-libxxf86vm
- libunwind
- vulkan-icd-loader
- glslang
source:
- LICENSE
- 'https://mesa.freedesktop.org/archive/mesa-${pkgver}.tar.xz'
sha256sums:
- SKIP
- SKIP
build: |
# FIX: Ograniczono gallium-drivers do tych, które faktycznie mogą być potrzebne.
# Jeśli masz tylko Nvidię, zostaw "nouveau" lub "swrast". Jeśli masz AMD, dodaj "radeonsi".
# Na razie zostawiam wszystkie, ale z komentarzem – dostosuj do swojego sprzętu.
meson setup mesa-${pkgver} builddir \
--prefix=/usr \
--buildtype=plain \
--libdir=lib \
--libexecdir=lib \
--sbindir=bin \
-D b_pie=true \
-D gallium-drivers=r300,r600,radeonsi,crocus,v3d,vc4,freedreno,etnaviv,i915,nouveau,svga,tegra,virgl,lima,panfrost,llvmpipe,softpipe,iris,zink,asahi,rocket,ethosu \
-D gallium-extra-hud=true \
-D amdgpu-virtio=true \
-D gallium-rusticl=false \
-D vulkan-drivers=amd,intel,intel_hasvk,swrast,virtio \
-D vulkan-icd-dir=/usr/share/vulkan/icd.d \
-D video-codecs=all \
-D microsoft-clc=disabled \
-D libunwind=disabled \
-D vulkan-layers="device-select,intel-nullhw,overlay,screenshot,anti-lag,vram-report-limit" \
-D vulkan-manifest-per-architecture=false \
-D valgrind=enabled \
-D intel-rt=enabled \
-D android-libbacktrace=disabled \
-D gles1=disabled
meson compile -C builddir
package: |
DESTDIR="${PKGDIR}" meson install -C builddir
install -m644 -Dt "${PKGDIR}/usr/share/licenses/${pkgname}" LICENSE
install -v -dm755 "${PKGDIR}/usr/share/doc/mesa"
cp -rfv mesa-${pkgver}/docs/* "${PKGDIR}/usr/share/doc/mesa/"
# Dowiązania dla indirect rendering w /usr/lib
ln -sf libGLX_mesa.so.0 "${PKGDIR}/usr/lib/libGLX_indirect.so.0"