diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk index 789dfa7ba2..a4c71b6816 100644 --- a/package/cairo/cairo.mk +++ b/package/cairo/cairo.mk @@ -55,6 +55,20 @@ else CAIRO_CONF_OPT += --disable-directfb endif +ifeq ($(BR2_PACKAGE_FREETYPE),y) + CAIRO_CONF_OPT += --enable-ft + CAIRO_DEPENDENCIES += freetype +else + CAIRO_CONF_OPT += --disable-ft +endif + +ifeq ($(BR2_PACKAGE_LIBGLIB2),y) + CAIRO_CONF_OPT += --enable-gobject + CAIRO_DEPENDENCIES += libglib2 +else + CAIRO_CONF_OPT += --disable-gobject +endif + ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y) CAIRO_CONF_OPT += --enable-glesv2 CAIRO_DEPENDENCIES += libgles