-rw-r--r-- root/root usr/include/GL/internal/dri_interface.h
-rw-r--r-- root/root usr/include/GL/osmesa.h
-rw-r--r-- root/root usr/include/gbm.h
--rw-r--r-- root/root usr/include/xa_composite.h
--rw-r--r-- root/root usr/include/xa_context.h
--rw-r--r-- root/root usr/include/xa_tracker.h
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/dri/
-rwxr-xr-x root/root usr/lib/dri/armada-drm_dri.so
-rwxr-xr-x root/root usr/lib/dri/hx8357d_dri.so
-rwxr-xr-x root/root usr/lib/dri/ili9225_dri.so
-rwxr-xr-x root/root usr/lib/dri/ili9341_dri.so
+-rwxr-xr-x root/root usr/lib/dri/imx-dcss_dri.so
-rwxr-xr-x root/root usr/lib/dri/imx-drm_dri.so
-rwxr-xr-x root/root usr/lib/dri/ingenic-drm_dri.so
--rwxr-xr-x root/root usr/lib/dri/kgsl_dri.so
-rwxr-xr-x root/root usr/lib/dri/kms_swrast_dri.so
--rwxr-xr-x root/root usr/lib/dri/lima_dri.so
+-rwxr-xr-x root/root usr/lib/dri/mali-dp_dri.so
-rwxr-xr-x root/root usr/lib/dri/mcde_dri.so
+-rwxr-xr-x root/root usr/lib/dri/mediatek_dri.so
-rwxr-xr-x root/root usr/lib/dri/meson_dri.so
-rwxr-xr-x root/root usr/lib/dri/mi0283qt_dri.so
--rwxr-xr-x root/root usr/lib/dri/msm_dri.so
-rwxr-xr-x root/root usr/lib/dri/mxsfb-drm_dri.so
-rwxr-xr-x root/root usr/lib/dri/pl111_dri.so
-rwxr-xr-x root/root usr/lib/dri/repaper_dri.so
lrwxrwxrwx root/root usr/lib/libglapi.so -> libglapi.so.0
lrwxrwxrwx root/root usr/lib/libglapi.so.0 -> libglapi.so.0.0.0
-rwxr-xr-x root/root usr/lib/libglapi.so.0.0.0
-lrwxrwxrwx root/root usr/lib/libxatracker.so -> libxatracker.so.2
-lrwxrwxrwx root/root usr/lib/libxatracker.so.2 -> libxatracker.so.2.5.0
--rwxr-xr-x root/root usr/lib/libxatracker.so.2.5.0
+-rwxr-xr-x root/root usr/lib/libvulkan_lvp.so
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/dri.pc
-rw-r--r-- root/root usr/lib/pkgconfig/gbm.pc
-rw-r--r-- root/root usr/lib/pkgconfig/osmesa.pc
--rw-r--r-- root/root usr/lib/pkgconfig/xatracker.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/drirc.d/
-rw-r--r-- root/root usr/share/drirc.d/00-mesa-defaults.conf
drwxr-xr-x root/root usr/share/glvnd/
drwxr-xr-x root/root usr/share/glvnd/egl_vendor.d/
-rw-r--r-- root/root usr/share/glvnd/egl_vendor.d/50_mesa.json
+drwxr-xr-x root/root usr/share/vulkan/
+drwxr-xr-x root/root usr/share/vulkan/icd.d/
+-rw-r--r-- root/root usr/share/vulkan/icd.d/lvp_icd.armv7l.json
--- /dev/null
+# Description: Mesa 3D Graphics Library
+# URL: http://www.mesa3d.org
+# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: elfutils libdrm libglvnd llvm python3-mako xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm
+# Optional: libva libvdpau wayland-protocols
+
+name=mesa
+version=21.2.3
+release=1
+source=(https://archive.mesa3d.org/$name-$version.tar.xz)
+
+build() {
+
+ prt-get isinst wayland-protocols && PKGMK_MESA_PLATFORMS+='wayland'
+ PKGMK_MESA_PLATFORMS+=',x11'
+
+ patch -Np1 -d mesa-$version -i $SRC/0001-Rip-out-VC4-forced-NEON.patch || true
+
+ meson setup build mesa-$version \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --buildtype=plain \
+ --wrap-mode nodownload \
+ -D b_lto=false \
+ -D b_pie=false \
+ -D b_pch=false \
+ -D llvm=enabled \
+ -D shared-llvm=enabled \
+ -D platforms=${PKGMK_MESA_PLATFORMS#,} \
+ -D osmesa=true \
+ -D gallium-drivers=swrast,vc4,v3d \
+ -D gallium-xa=false \
+ -D gallium-xvmc=false \
+ -D shared-glapi=true \
+ -D dri-drivers="" \
+ -D dri3=enabled \
+ -D gbm=enabled \
+ -D gles1=disabled \
+ -D gles2=enabled \
+ -D glvnd=true \
+ -D glx=dri \
+ -D egl=enabled
+
+ meson compile -C build -j ${JOBS:-1}
+ DESTDIR=$PKG meson install -C build
+
+ # indirect rendering symlink
+ ln -s libGLX_mesa.so.0 $PKG/usr/lib/libGLX_indirect.so.0
+
+}
+++ /dev/null
-# Description: Mesa 3D Graphics Library
-# URL: http://www.mesa3d.org
-# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on: elfutils libdrm libvdpau libglvnd llvm xorg-libxdamage xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm python3-mako
-
-name=mesa3d
-version=20.1.7
-release=1
-source=(ftp://ftp.freedesktop.org/pub/mesa/mesa-$version.tar.xz)
-
-build() {
- cd mesa-$version
-
- meson build --prefix=/usr \
- --sysconfdir=/etc \
- -Dllvm=true \
- -Dgbm=true \
- -Dgles1=true \
- -Dgles2=true \
- -Dosmesa=gallium \
- -Dgallium-xa=true \
- -Dshared-llvm=true \
- -Dplatforms=x11,drm \
- -Dgallium-drivers=swrast,freedreno,lima,kmsro,vc4,v3d \
- -Dglvnd=true
-
-
-
- DESTDIR=$PKG ninja -C build -j ${JOBS:-1} install
-
- # indirect rendering symlink
- ln -s libGLX_mesa.so.0 $PKG/usr/lib/libGLX_indirect.so.0
-}