summaryrefslogtreecommitdiffstats
path: root/graphics-libs/mesa/DEPENDS
blob: a7412805f90a5b85a23d07a3e608ce7eb2420c35 (plain) (blame)
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
. "$GRIMOIRE"/VDEPENDS &&
. "${GRIMOIRE}/MESON_DEPENDS" &&
depends -sub "CXX" gcc &&
depends bison &&
depends flex  &&
depends GETTEXT   &&
depends -sub "$MESA_DRM" libdrm &&
depends util-macros &&
depends expat &&
depends libxdamage &&
depends libx11 &&
depends xorgproto &&
depends libxshmfence &&
depends -sub "PYTHON3" mako &&
depends libxrandr &&

depends nettle  &&
depends zlib    &&

if list_find "$MESA_GALLIUM" "nouveau"; then
  depends -sub RTTI llvm
fi &&

if (list_find "${MESA_GALLIUM}" "radeonsi") ||
   (list_find "$MESA_VULKAN" amd); then
  depends -sub AMD llvm &&
  depends LIBELF
else
  optional_depends llvm 'llvm=enabled' 'llvm=disabled' 'LLVM support'
fi &&

if list_find "$MESA_GLX" dri;then
  depends libxext &&
  depends libxxf86vm &&
  depends libxfixes &&
  depends libxcb
fi &&
if list_find "$MESA_EGL" wayland;then
  depends wayland &&
  depends wayland-protocols
fi &&

optional_depends libvdpau 'gallium-vdpau=enabled' 'gallium-vdpau=disabled' 'gallium vdpau state tracker' &&
optional_depends libxvmc  'gallium-xvmc=enabled'  'gallium-xvmc=disabled'  'gallium xvmc state tracker(obsolete)' &&
optional_depends libva    'gallium-va=enabled'    'gallium-va=disabled'    'gallium va state tracker' &&
if is_depends_enabled "${SPELL}" libva; then
  . $GRIMOIRE/config_query_multi.function &&
  config_query_multi MESA_VA_CODECS "Would you like to enable some patented codecs?" \
                                     none all vc1dec h264dec h264enc h265dec h265enc &&
  MESA_VA_CODECS="${MESA_VA_CODECS# }" &&
  if list_find "${MESA_VA_CODECS}" "all"; then
    MESA_VA_CODECS="vc1dec h264dec h264enc h265dec h265enc"
  fi
else
  persistent_remove MESA_VA_CODECS
fi &&
#optional_depends libomxil 'gallium-omx=bellagio'   'gallium-omx=disabled'   'gallium omx bellagio state tracker' &&
#optional_depends tizonia  'gallium-omx=tizonia'   'gallium-omx=disabled'   'gallium omx state tracker' &&
#optional_depends libxa    '' '' 'gallium xa state tracker' &&
optional_depends lm_sensors "lmsensors=enabled" "lmsensors=disabled" "HUD Sensor support" &&
optional_depends valgrind "valgrind=enabled" "valgrind=disabled" "debugging" &&
optional_depends libunwind "libunwind=enabled" "libunwind=disabled" "for stack-traces" &&
optional_depends libselinux "selinux=true" "selinux=false" "SELinux-aware Mesa" &&
optional_depends libglvnd "glvnd=true" "glvnd=false" "enable GLVND support'" &&
optional_depends zstd     "" "" "to compress disk cache" &&

if is_depends_enabled "$SPELL" libglvnd; then
  vdepends <<< 'libglvnd >= 1.3.2'
else
  optional_depends smgl-gl_select '' '' 'allow select OPENGL provider'
fi &&

if list_find "$MESA_TOOLS" intel-ui;then
  depends gtk+3
fi