. "$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 binutils \ "--enable-symbol-lookup" \ "--disable-symbol-lookup" \ "for symbol-lookup feature" && if is_depends_enabled $SPELL binutils; then depends -sub LIBERTY binutils fi && 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"