summaryrefslogtreecommitdiffstats
path: root/graphics-libs/mesalib/DEPENDS
blob: 7eb77c1476b613b14773f9f750e54af43ee94985 (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
. "$GRIMOIRE/FUNCTIONS" &&

depends dri2proto &&
depends libdrm &&
depends util-macros &&
depends lndir &&
depends xorg-cf-files &&
depends makedepend &&
depends expat &&
depends libxdamage &&
depends libx11 &&
depends libxext &&
depends libxxf86vm &&
depends libxau &&
depends libxfixes &&
depends glproto &&
depends talloc &&
depends libxml2 &&
sub_depends libxml2 PYTHON &&

if list_find "--enable-glw" $MESALIB_OPTS; then
  depends libxt
fi &&

optional_depends libxcb \
                 '--enable-xcb' \
                 '--disable-xcb' \
                 'Enable XCB support?'

if is_depends_enabled $SPELL libxcb;then
  sub_depends libx11 XCB
fi &&

if spell_ok libdrm && is_version_less $(installed_version libdrm) 2.4.3; then
  force_depends libdrm
fi &&

if ( list_find "i915" $MESALIB_DRIVERS ) || \
   ( list_find "i965" $MESALIB_DRIVERS ); then
  sub_depends libdrm INTEL
fi &&

if ( list_find "r200" $MESALIB_DRIVERS ) || \
   ( list_find "radeon" $MESALIB_DRIVERS ); then
  sub_depends libdrm RADEON
fi &&

if [[ $MESALIB_BRANCH == "scm" ]]; then
  depends  git
fi &&

if [[ "$MESALIB_BRANCH" == "development" && "$MESALIB_GALLIUM" != "none" ]]; then
  depends llvm
  if list_find wayland MESA_EGL;then
    depends wayland
  fi
fi &&
optional_depends udev '' '' 'hardware detection'