summaryrefslogtreecommitdiff
path: root/media-libs/mesa-amber/files/mesa-amber-21.3.9-libnames.patch
blob: 8603152e2ff2ab110167dc94813541a3df209f58 (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
https://bugs.gentoo.org/945373

media-libs/mesa became incompatible with media-libs/mesa-amber.
The best way to deal with this seems to be to rename mesa-amber
libraries and install them alongside.

This patch renames libgbm.so to libgbm-amber.so and libglapi.so to
libglapi-amber.so, so mesa-amber drivers can use their own libraries.

--- a/src/gbm/meson.build
+++ b/src/gbm/meson.build
@@ -45,8 +45,10 @@ if with_platform_wayland
   incs_gbm += inc_wayland_drm
 endif
 
+gbm_lib_name = 'gbm_@0@'.format(glvnd_vendor_name)
+
 libgbm = shared_library(
-  'gbm',
+  gbm_lib_name,
   files_gbm,
   include_directories : incs_gbm,
   c_args : [args_gbm],
--- a/src/mapi/shared-glapi/meson.build
+++ b/src/mapi/shared-glapi/meson.build
@@ -41,8 +41,10 @@ if with_platform_windows
   _glapi_c_args += ['-D_GLAPI_DLL_EXPORTS']
 endif
 
+glapi_lib_name = 'glapi_@0@'.format(glvnd_vendor_name)
+
 libglapi = shared_library(
-  'glapi',
+  glapi_lib_name,
   [files_mapi_glapi, files_mapi_util, shared_glapi_mapi_tmp_h],
   c_args : [
     _glapi_c_args,