-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathorg.freedesktop.Platform.GL.asahi.yml
115 lines (102 loc) · 3.6 KB
/
org.freedesktop.Platform.GL.asahi.yml
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
id: org.freedesktop.Platform.GL.asahi
branch: '22.08'
runtime: org.freedesktop.Platform
sdk: org.freedesktop.Sdk
runtime-version: '22.08'
build-extension: true
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm15
build-options:
prepend-path: /usr/lib/sdk/llvm15/bin
prepend-ld-library-path: /usr/lib/sdk/llvm15/lib
x-arch-build-options:
x86_64: &x86_64-build-options
prefix: /usr/lib/x86_64-linux-gnu/GL/asahi
prepend-pkg-config-path: /usr/lib/x86_64-linux-gnu/GL/asahi/lib/pkgconfig
libdir: /usr/lib/x86_64-linux-gnu/GL/asahi/lib
# Needs https://github.com/flatpak/flatpak-builder/issues/381 to be resolved before this can actually be used. Until then, only 64-bit builds.
i386:
prefix: /usr/lib/i386-linux-gnu/GL/asahi
prepend-pkg-config-path: /usr/lib/i386-linux-gnu/GL/asahi/lib/pkgconfig
libdir: /usr/lib/i386-linux-gnu/GL/asahi/lib
# org.freedesktop.Sdk.Compat.arm is deprecated, so only build for aarch64.
aarch64: &aarch64-build-options
prefix: /usr/lib/aarch64-linux-gnu/GL/asahi
prepend-pkg-config-path: /usr/lib/aarch64-linux-gnu/GL/asahi/lib/pkgconfig
libdir: /usr/lib/aarch64-linux-gnu/GL/asahi/lib
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
- /share/aclocal
- /share/man
- '*.la'
- '*.a'
modules:
- name: libdrm
build-options:
arch:
x86_64: *x86_64-build-options
aarch64: *aarch64-build-options
buildsystem: meson
config-opts:
- -Dcairo-tests=disabled
- -Dman-pages=disabled
- -Dudev=false
sources:
- type: git
url: https://gitlab.freedesktop.org/mesa/drm.git
tag: libdrm-2.4.114
commit: b9ca37b3134861048986b75896c0915cbf2e97f9
# x-checker-data:
# type: git
# tag-pattern: ^libdrm-(\d[\d.]+\d)$
- name: mesa
build-options:
arch:
x86_64: *x86_64-build-options
aarch64: *aarch64-build-options
# From upstream: Build only minimal debug info to reduce size
cflags: -g1
cxxflags: -g1
buildsystem: meson
config-opts:
- -Db_ndebug=true
- -Db_lto=false
- -Dplatforms=x11,wayland
- -Dgallium-drivers=swrast,virgl,kmsro,asahi
- -Dvulkan-drivers=swrast
# Will this one mess the builds up? Dunno, but upstream Asahi builds with it like this.
- -Dvulkan-layers=
- -Ddri3=enabled
- -Degl=enabled
- -Dgallium-extra-hud=true
- -Dgallium-opencl=disabled
- -Dgallium-rusticl=false
- -Dgallium-va=disabled
- -Dgallium-vdpau=disabled
- -Dgallium-xa=disabled
- -Dgbm=enabled
- -Dgles1=disabled
- -Dgles2=enabled
- -Dglx=dri
- -Dlibunwind=disabled
- -Dllvm=enabled
- -Dosmesa=true
- -Dshared-glapi=enabled
- -Dmicrosoft-clc=disabled
- -Dvalgrind=enabled
sources:
- type: archive
url: https://gitlab.freedesktop.org/asahi/mesa/-/archive/asahi-20230904/mesa-asahi-20230904.tar.bz2
sha256: ce96f78d81e558adf0521c44782bea6955bc02ab362e22712b8e0bc7b7eb74cd
x-checker-data:
type: html
url: https://github.com/AsahiLinux/PKGBUILDs/raw/main/mesa-asahi-edge/PKGBUILD
version-pattern: _asahiver=(.+)
url-template: https://gitlab.freedesktop.org/asahi/mesa/-/archive/asahi-$version/mesa-asahi-$version.tar.bz2
# We might need to make this do some arch-specific stuff later for i386 builds, but as of the time of writing we only do 64-bit builds so we'll be fine.
- name: llvm
buildsystem: simple
build-commands:
- cp /usr/lib/sdk/llvm15/lib/libLLVM-15.so /usr/lib/$(uname -m)-linux-gnu/GL/asahi/lib