36 lines
971 B
Plaintext
36 lines
971 B
Plaintext
# Description: Mesa 3D Graphics Library
|
|
# URL: https://www.mesa3d.org/
|
|
# Maintainer: CRUX Xorg Team, xorg-ports at crux dot nu
|
|
# Depends on: elfutils libdrm libglvnd libvdpau llvm python3-mako xorg-libxdamage xorg-libxrandr xorg-libxshmfence xorg-libxvmc xorg-libxxf86vm
|
|
# Optional: libva
|
|
|
|
name=mesa
|
|
version=21.1.6
|
|
release=1
|
|
source=(https://archive.mesa3d.org/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
meson setup build mesa-$version \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--buildtype=plain \
|
|
-D llvm=enabled \
|
|
-D shared-llvm=enabled \
|
|
-D gbm=enabled \
|
|
-D gles1=enabled \
|
|
-D gles2=enabled \
|
|
-D osmesa=true \
|
|
-D gallium-xa=enabled \
|
|
-D gallium-vdpau=enabled \
|
|
-D platforms=x11 \
|
|
-D gallium-drivers=r300,r600,svga,swrast,radeonsi,nouveau \
|
|
-D vulkan-drivers=amd,intel \
|
|
-D glvnd=true
|
|
|
|
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
|
|
}
|