blob: 37a976b1299ba591f7ef0bc508a61a2e6ce03ea3 (
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
|
#!/bin/sh
MAKEDEPS="meson ninja python-mako libva libvdpau llvm libxxf86vm libelf lm_sensors libexpat libvulkan wayland-protocols"
DEPS="xorg-libs libdrm"
PKG_VER=21.3.7
SOURCE=https://mesa.freedesktop.org/archive/mesa-$PKG_VER.tar.xz
ADDITIONAL="
mesa-$PKG_VER-add_xdemos-1.patch
mesa-$PKG_VER-nouveau_fixes-1.patch
"
DESC="An implementation of the OpenGL specification"
prepare () {
patch -Np1 -i mesa-$PKG_VER-add_xdemos-1.patch
export GALLIUM_DRV="crocus,i915,iris,nouveau,r600,radeonsi,svga,swrast,virgl"
export DRI_DRIVERS="i965,nouveau"
patch -Np1 -i mesa-$PKG_VER-nouveau_fixes-1.patch
}
build () {
mkdir build &&
cd build &&
meson --prefix=$XORG_PREFIX \
--buildtype=release \
-Ddri-drivers=$DRI_DRIVERS \
-Dgallium-drivers=$GALLIUM_DRV \
-Dgallium-nine=false \
-Dglx=dri \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
.. &&
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
}
|