summaryrefslogtreecommitdiffstats
path: root/x11-libs/cairo/DEPENDS
blob: 84b2f4a203124c1f1fe1710041c6582dd72276f8 (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
76
77
78
79
80
81
82
83
. "$GRIMOIRE/FUNCTIONS" &&
. "${GRIMOIRE}/MESON_DEPENDS" &&

if [[ "${CAIRO_BRANCH}" == "scm" ]]; then
  depends git
fi &&

depends pixman &&

if spell_ok pixman && is_version_less $(installed_version pixman) 0.30.0; then
  force_depends pixman
fi &&

optional_depends zlib \
                 "xml=enabled" \
                 "xml=disabled" \
                 "for XML surface backend" &&

# uses libbfd-*.so
optional_depends -sub LIBERTY binutils \
                 "symbol-lookup=enabled" \
                 "symbol-lookup=disabled" \
                 "for symbol-lookup feature" &&

optional_depends freetype2 \
                 "freetype=enabled" \
                 "freetype=disabled" \
                 "for Freetype font backend" &&
if is_depends_enabled ${SPELL} freetype2; then
  optional_depends fontconfig \
                   "fontconfig=enabled" \
                   "fontconfig=disabled" \
                   "for Fontconfig backend"
fi &&

optional_depends libxcb \
                 "xcb=enabled" \
                 "xcb=disabled" \
                 "for XCB surface backend feature" &&

optional_depends glib2 \
                 "glib=enabled" \
                 "glib=disabled" \
                 "for gobject functions feature" &&

optional_depends libx11 \
                 "xlib=enabled" \
                 "xlib=disabled" \
                 "for Xlib surface backend feature" &&

if is_depends_enabled $SPELL libx11; then
  depends xorgproto &&
  depends libxext &&
  depends libxrender &&

  if is_depends_enabled ${SPELL} libxcb; then
    config_query_option CAIRO_OPTS "Enable Xlib/XCB functions feature?" n \
                                   "xlib-xcb=enabled" \
                                   "xlib-xcb=disabled" &&
   list_remove CAIRO_OPTS "--enable-xlib-xcb" &&
   list_remove CAIRO_OPTS "--enable-xlib-xcb=yes" &&
   list_remove CAIRO_OPTS "--enable-xlib-xcb=nno" &&
   list_remove CAIRO_OPTS "--disable-xlib-xcb"
  fi
fi &&

optional_depends libpng \
                 "png=enabled" \
                 "png=disabled" \
                 "for PNG support" &&

optional_depends lzo "" "" "for LZO compression support" &&

optional_depends OPENGL \
                 "gl-backend=auto" \
                 "gl-backend=disabled" \
                 "for OpenGL accelerated graphics" &&


optional_depends gtk-doc \
                 "gtk_doc=true" \
                 "gtk_doc=false" \
                 "Build documentation with gtk-doc"