forked from flatpak/freedesktop-sdk-images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
org.freedesktop.Platform.GL.mesa-stable.json.in
172 lines (172 loc) · 6.33 KB
/
org.freedesktop.Platform.GL.mesa-stable.json.in
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"id": "org.freedesktop.Platform.GL.default",
"branch": "@@SDK_BRANCH@@",
"runtime": "org.freedesktop.Platform",
"build-extension": true,
"sdk": "org.freedesktop.Sdk",
"runtime-version": "@@SDK_BRANCH@@",
"sdk-extensions": [],
"separate-locales": false,
"cleanup": [ "/include", "/share/man" ],
"build-options" : {
"no-debuginfo": true,
"strip": true,
"cflags": "-O2 -g",
"cxxflags": "-O2 -g",
"prefix": "/usr/lib/GL/default",
"env": {
"V": "1",
"PKG_CONFIG_LIBGLVND_DATADIR": "/usr/lib/GL/default"
}
},
"modules": [
{
"name": "llvm",
"cmake": true,
"builddir": true,
"build-options" : {
"cflags": "-g1",
"cxxflags": "-g1"
},
"cleanup-platform": ["*"],
"build-options" : {
"arch" : {
"i386" : {
"config-opts" : [
"-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU;NVPTX"
]
},
"x86_64" : {
"config-opts" : [
"-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU;NVPTX"
]
},
"arm" : {
"config-opts" : [
"-DLLVM_TARGETS_TO_BUILD=ARM;AMDGPU;NVPTX"
]
},
"aarch64" : {
"config-opts" : [
"-DLLVM_TARGETS_TO_BUILD=AArch64;AMDGPU;NVPTX"
]
}
}
},
"cleanup": ["*"],
"config-opts": [
"-DLLVM_ENABLE_ASSERTIONS:BOOL=OFF",
"-DBUILD_SHARED_LIBS:BOOL=OFF",
"-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON",
"-DCMAKE_BUILD_TYPE=RelWithDebInfo",
"-DLLVM_LIBDIR_SUFFIX=",
"-DLLVM_ENABLE_LIBCXX:BOOL=OFF",
"-DLLVM_ENABLE_ZLIB:BOOL=ON",
"-DLLVM_ENABLE_FFI:BOOL=ON",
"-DLLVM_BUILD_TESTS:BOOL=OFF",
"-DLLVM_INCLUDE_EXAMPLES:BOOL=OFF",
"-DLLVM_BUILD_EXAMPLES:BOOL=OFF",
"-DLLVM_INCLUDE_UTILS:BOOL=ON",
"-DLLVM_INSTALL_UTILS:BOOL=ON",
"-DLLVM_INCLUDE_DOCS:BOOL=OFF",
"-DLLVM_BUILD_DOCS:BOOL=OFF",
"-DLLVM_ENABLE_SPHINX:BOOL=OFF",
"-DLLVM_ENABLE_DOXYGEN:BOOL=OFF",
"-DLLVM_BUILD_LLVM_DYLIB:BOOL=OFF",
"-DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=ON",
"-DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include",
"-DLLVM_INSTALL_TOOLCHAIN_ONLY:BOOL=OFF"],
"sources": [
{
"type": "archive",
"url": "http://llvm.org/releases/5.0.0/llvm-5.0.0.src.tar.xz",
"sha256": "e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da"
}
]
},
{
"name": "mesa",
"build-options" : {
"cxxflags": "-fno-rtti -fno-exceptions",
"arch" : {
"i386" : {
"config-opts" : [
"--build=i586-unknown-linux-gnu",
"--with-gallium-drivers=svga,swrast,nouveau,r600,r300,radeonsi",
"--with-dri-drivers=swrast,nouveau,radeon,r200,i915,i965",
"--with-vulkan-drivers=intel,radeon"
]
},
"x86_64" : {
"config-opts" : [
"--with-gallium-drivers=svga,swrast,nouveau,r600,r300,radeonsi",
"--with-dri-drivers=swrast,nouveau,radeon,r200,i915,i965",
"--with-vulkan-drivers=intel,radeon"
]
},
"arm" : {
"config-opts" : [
"--with-gallium-drivers=svga,swrast,nouveau,freedreno,vc4",
"--with-dri-drivers=swrast,nouveau,radeon,r200"
]
},
"aarch64" : {
"config-opts" : [
"--with-gallium-drivers=svga,swrast,nouveau,freedreno,vc4",
"--with-dri-drivers=swrast,nouveau,radeon,r200"
]
}
}
},
"config-opts": [
"--enable-libglvnd",
"--disable-selinux",
"--disable-osmesa",
"--enable-egl",
"--disable-gles1",
"--enable-gles2",
"--disable-xvmc",
"--with-egl-platforms=x11,drm,surfaceless,wayland",
"--enable-shared-glapi",
"--enable-gbm",
"--disable-opencl",
"--enable-glx-tls",
"--enable-texture-float=yes",
"--enable-llvm",
"--with-llvm-prefix=/usr/lib/GL/default",
"--disable-llvm-shared-libs",
"--enable-dri"
],
"make-args": [ "MKDEP=/bin/true"],
"post-install": [
/* Strip the dri drivers to avoid breaking the hardlinks later */
"for i in /usr/lib/GL/default/lib/vdpau/*.so.1.0.0 /usr/lib/GL/default/lib/dri/*.so; do cp $i $i.tmp; eu-strip $i.tmp; mv $i.tmp $i; done",
/* Set the default driver to mesa */
"ln -s libEGL_mesa.so /usr/lib/GL/default/lib/libEGL_indirect.so",
"ln -s libEGL_mesa.so.0 /usr/lib/GL/default/lib/libEGL_indirect.so.0",
"ln -s libGLX_mesa.so /usr/lib/GL/default/lib/libGLX_indirect.so",
"ln -s libGLX_mesa.so.0 /usr/lib/GL/default/lib/libGLX_indirect.so.0",
"mv /usr/lib/GL/default/share/vulkan /usr/lib/GL/default/vulkan"
],
"sources": [
{
"type": "archive",
"url": "https://mesa.freedesktop.org/archive/mesa-17.2.7.tar.xz",
"sha256": "50cfdea8df55045797b4d0409591c04c784d9551c4da09b8178874dbe5a37a68"
},
{
"type": "patch",
"path": "mesa-glvnd-fix-gl-dot-pc.patch"
},
{
"type": "patch",
"path": "mesa-Fix-linkage-against-shared-glapi.patch"
},
{
"type": "patch",
"path": "mesa-17.2.2-dri-path.patch"
}
]
}
]
}