blob: 2a5f8ee44feaa5e1bb6187cf8891f72581eb3938 (
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
56
57
58
|
#!/bin/mkpkg
# description: Mesa 3D Graphics Library with Intel GPU support
# url: https://www.mesa3d.org/
name=mesa-intel
version=26.2.3
release=1
variant=(Mesa with Intel GPU support)
provides=(mesa)
depends=(libdrm libglvnd llvm libelf expat zlib zstd
wayland wayland-protocols libva libvdpau vulkan-loader
spirv-tools)
makedeps=(meson python3 py-mako py-pyyaml py-setuptools py-packaging libclc glslang bison flex vulkan-headers)
source=(https://archive.mesa3d.org/mesa-$version.tar.xz)
sha256sums=(
"1628058a8d2c0615975de5a15ab7bbb9638c50000b5bed9456ff423ea034a81f"
)
build() {
printf '%s' "$version-$release" > mesa-$version/VERSION
meson setup mesa-$version build \
--prefix=/usr \
--libdir=lib \
--sysconfdir=/etc \
--buildtype=release \
-D platforms=wayland \
-D gallium-drivers=iris,crocus,llvmpipe,zink \
-D vulkan-drivers=intel \
-D vulkan-layers=device-select,overlay \
-D egl=enabled \
-D gbm=enabled \
-D gles1=disabled \
-D gles2=enabled \
-D glx=disabled \
-D llvm=enabled \
-D shared-llvm=enabled \
-D glvnd=enabled \
-D gallium-va=disabled \
-D video-codecs=all \
-D valgrind=disabled
meson compile -C build
DESTDIR=$PKG meson install -C build
# Remove files owned by wayland-protocols
rm -rf $PKG/usr/include/wayland-protocols
rm -rf $PKG/usr/share/wayland-protocols
rm -f $PKG/usr/share/pkgconfig/wayland-protocols.pc
}
signify() {
untrusted comment: public key
RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}
# vim: filetype=sh
|