blob: 81a3549a9c79b8f44fea549eb13e925e00d9b3be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/sh
MAKEDEPS="meson ninja python-mako libvdpau llvm libxxf86vm libelf lm-sensors expat wayland-protocols llvm libxshmfence libdrm libxrandr"
DEPS="xorg-libs libdrm"
PKG_VER=22.1.7
SOURCE=https://mesa.freedesktop.org/archive/mesa-$PKG_VER.tar.xz
ADDITIONAL="
0001-freedreno-Enable-A619.patch
0001-radeonsi-On-Aarch64-force-persistent-buffers-to-GTT.patch
disable-rgb10-by-default.patch
"
DESC="An implementation of the OpenGL specification"
prepare () {
apply_patches
export GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
#export DRI_DRIVERS="i965,nouveau"
}
build () {
mkdir build &&
cd build &&
meson --prefix=/usr \
--buildtype=release \
-Dgallium-drivers=$GALLIUM_DRV \
-Dplatforms=x11,wayland \
-Dgallium-nine=false \
-Dglx=dri \
-Dopengl=true \
-Dosmesa=true \
-Dshared-glapi=enabled \
-Degl=enabled \
-Dgles1=disabled \
-Dgles2=disabled \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
.. &&
#-Ddri-drivers=$DRI_DRIVERS \
unset GALLIUM_DRV DRI_DRIVERS &&
ninja -j$JOBS
}
package () {
DESTDIR=$PKG_DEST ninja install
install -dm755 $PKG_DEST/usr/share/doc/mesa-$PKG_VER &&
cp -rf ../docs/* $PKG_DEST/usr/share/doc/mesa-$PKG_VER
}
|