blob: d8bb117dd08754aeb09c855f64df1af6f13cd709 (
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
91
92
93
94
95
96
97
98
|
. "$GRIMOIRE/FUNCTIONS" &&
depends freetype2 '--enable-ft' &&
depends fontconfig &&
depends pixman &&
depends xz-utils &&
if spell_ok pixman && is_version_less $(installed_version pixman) 0.30.0; then
force_depends pixman
fi &&
optional_depends zlib \
"--enable-xml" \
"--disable-xml" \
"for XML surface backend" &&
# uses libbfd-*.so
optional_depends -sub LIBERTY binutils \
"--enable-symbol-lookup" \
"--disable-symbol-lookup" \
"for symbol-lookup feature" &&
optional_depends libxcb \
"--enable-xcb" \
"--disable-xcb" \
"for XCB surface backend feature" &&
optional_depends glib2 \
"--enable-gobject" \
"--disable-gobject" \
"for gobject functions feature" &&
optional_depends libx11 \
"--enable-xlib" \
"--disable-xlib" \
"for Xlib surface backend feature" &&
if is_depends_enabled $SPELL libx11; then
depends xextproto &&
depends libxext &&
optional_depends libxrender \
"--enable-xlib-xrender" \
"--disable-xlib-xrender" \
"for Xlib Xrender surface backend" &&
# Crashes firefox, see https://bugzilla.mozilla.org/show_bug.cgi?id=1136417
# Verified the crash with cairo-1.12.18 and cairo-1.14.2.
# It's off by default upstream, too, we just avoid suggestion dumb things
# to our users. They can always enable it via CONFIG_LOCAL.
# config_query_option CAIRO_OPTS "Enable Xlib/XCB functions feature?" n \
# "--enable-xlib-xcb" \
# "--disable-xlib-xcb"
message "${MESSAGE_COLOR}WARNING: Disabling xlib-xcb, which is unstable (crashes firefox).$DEFAULT_COLOR" &&
# Still need to disable it in case CAIRO_OPTS has it still in it.
list_add CAIRO_OPTS "--disable-xlib-xcb"
fi &&
# these DRM options are bogus
#optional_depends udev \
# "--enable-drm" \
# "--disable-drm" \
# "for drm support" &&
#
#if is_depends_enabled $SPELL udev; then
# config_query_option CAIRO_OPTS "Enable XCB drm functions feature?" n \
# "--enable-xcb-drm" \
# "--disable-xcb-drm" &&
# optional_depends xorg-server \
# "--enable-drm-xr" \
# "--disable-drm-xr" \
# "for DRM Xr (DDX) functions feature"
#fi &&
optional_depends libpng \
"--enable-png --enable-svg" \
"--disable-png --disable-svg" \
"for PNG support" &&
optional_depends OPENGL \
"--enable-gl" \
"--disable-gl" \
"for OpenGL accelerated graphics" &&
optional_depends directfb \
"--enable-directfb" \
"--disable-directfb" \
"for directfb surface backend feature" &&
optional_depends gtk-doc \
"--enable-gtk-doc" \
"--disable-gtk-doc" \
"Build documentation with gtk-doc" &&
optional_depends valgrind \
"--enable-valgrind" \
"--disable-valgrind" \
"for Valgrind support"
|