summaryrefslogtreecommitdiffstats
path: root/x11-libs/cairo/DEPENDS
blob: 9c70d27531b35b2b32c4a82c1920da8294e2ac83 (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
84
85
86
87
88
89
90
. "$GRIMOIRE/FUNCTIONS" &&

depends pixman &&

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

optional_depends zlib \
                 "--enable-xml=yes" \
                 "--enable-xml=no" \
                 "for XML surface backend" &&

# uses libbfd-*.so
optional_depends -sub LIBERTY binutils \
                 "--enable-symbol-lookup=yes" \
                 "--enable-symbol-lookup=no" \
                 "for symbol-lookup feature" &&

optional_depends freetype2 \
                 "--enable-ft=yes" \
                 "--enable-ft=no" \
                 "for Freetype font backend" &&
if is_depends_enabled ${SPELL} freetype2; then
  optional_depends fontconfig \
                   "--enable-fc=yes" \
                   "--enable-fc=no" \
                   "for Fontconfig backend"
fi &&

optional_depends libxcb \
                 "--enable-xcb=yes" \
                 "--enable-xcb=no" \
                 "for XCB surface backend feature" &&

optional_depends glib2 \
                 "--enable-gobject=yes" \
                 "--enable-gobject=no" \
                 "for gobject functions feature" &&

optional_depends libx11 \
                 "--enable-xlib=yes" \
                 "--enable-xlib=no" \
                 "for Xlib surface backend feature" &&

if is_depends_enabled $SPELL libx11; then
  depends xorgproto &&
  depends libxext &&
  optional_depends libxrender \
                   "--enable-xlib-xrender=yes" \
                   "--enable-xlib-xrender=no" \
                   "for Xlib Xrender surface backend" &&

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

optional_depends libpng \
                 "--enable-png=yes" \
                 "--enable-png=no" \
                 "for PNG support" &&
if is_depends_enabled ${SPELL} libpng; then
  optional_depends librsvg2 \
                   "--enable-svg=yees" \
                   "--enable-svg=no" \
                   "for SVG support"
fi &&

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

optional_depends OPENGL \
                 "--enable-gl=yes" \
                 "--enable-gl=no" \
                 "for OpenGL accelerated graphics" &&


optional_depends gtk-doc \
                 "--enable-gtk-doc=yes" \
                 "--enable-gtk-doc=no" \
                 "Build documentation with gtk-doc" &&

optional_depends valgrind \
                 "--enable-valgrind=yes" \
                 "--enable-valgrind=no" \
                 "for Valgrind support"