aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/cairo/cairo.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk
index 347bb75250..aa03a27858 100644
--- a/package/cairo/cairo.mk
+++ b/package/cairo/cairo.mk
@@ -54,6 +54,20 @@ else
CAIRO_CONF_OPT += --disable-directfb
endif
+ifeq ($(BR2_PACKAGE_HAS_OPENGL_ES),y)
+ CAIRO_CONF_OPT += --enable-glesv2
+ CAIRO_DEPENDENCIES += libgles
+else
+ CAIRO_CONF_OPT += --disable-glesv2
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_OPENVG),y)
+ CAIRO_CONF_OPT += --enable-vg
+ CAIRO_DEPENDENCIES += libopenvg
+else
+ CAIRO_CONF_OPT += --disable-vg
+endif
+
ifeq ($(BR2_PACKAGE_XORG7),y)
CAIRO_CONF_OPT += --enable-xlib --enable-xcb --with-x
CAIRO_DEPENDENCIES += xlib_libX11 xlib_libXext