summaryrefslogtreecommitdiffstats
path: root/package/cairo/cairo.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-03-12 10:21:21 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-03-12 10:21:21 +0000
commitbcbd1442878dcb73b9c1efaf123651bfb9139dba (patch)
treee02b835b0b482fe53e7149976245943c12e51654 /package/cairo/cairo.mk
parentba567f8a582cdf3ec59a9187c42e1294f860f5f0 (diff)
downloadbuildroot-novena-bcbd1442878dcb73b9c1efaf123651bfb9139dba.tar.gz
buildroot-novena-bcbd1442878dcb73b9c1efaf123651bfb9139dba.zip
cairo: more fine grained configutation and fix dependencies
Diffstat (limited to 'package/cairo/cairo.mk')
-rw-r--r--package/cairo/cairo.mk42
1 files changed, 39 insertions, 3 deletions
diff --git a/package/cairo/cairo.mk b/package/cairo/cairo.mk
index 99893ea98..0814f9cb3 100644
--- a/package/cairo/cairo.mk
+++ b/package/cairo/cairo.mk
@@ -42,11 +42,47 @@ CAIRO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
ac_cv_path_GLIB_GENMARSHAL=$(HOST_GLIB)/bin/glib-genmarshal
+CAIRO_DEPENDENCIES = uclibc pkgconfig fontconfig pixman
+
ifeq ($(BR2_PACKAGE_DIRECTFB),y)
- CAIRO_CONF_OPT = --disable-xlib --without-x --enable-directfb
- CAIRO_DEPENDENCIES_EXTRA = directfb
+ CAIRO_CONF_OPT += --enable-directfb
+ CAIRO_DEPENDENCIES += directfb
+else
+ CAIRO_CONF_OPT += --disable-directfb
+endif
+
+ifneq ($(BR2_PACKAGE_XSERVER_none),y)
+ CAIRO_CONF_OPT += --enable-xlib --with-x
+ CAIRO_DEPENDENCIES += $(XSERVER)
+else
+ CAIRO_CONF_OPT += --disable-xlib --without-x
+endif
+
+ifeq ($(BR2_PACKAGE_CAIRO_PS),y)
+ CAIRO_CONF_OPT += --enable-ps
+ CAIRO_DEPENDENCIES += zlib
+else
+ CAIRO_CONF_OPT += --disable-ps
endif
-CAIRO_DEPENDENCIES = uclibc gettext libintl pkgconfig zlib libpng fontconfig $(CAIRO_DEPENDENCIES_EXTRA) pixman $(XSERVER)
+ifeq ($(BR2_PACKAGE_CAIRO_PDF),y)
+ CAIRO_CONF_OPT += --enable-pdf
+ CAIRO_DEPENDENCIES += zlib
+else
+ CAIRO_CONF_OPT += --disable-pdf
+endif
+
+ifeq ($(BR2_PACKAGE_CAIRO_PNG),y)
+ CAIRO_CONF_OPT += --enable-png
+ CAIRO_DEPENDENCIES += libpng
+else
+ CAIRO_CONF_OPT += --disable-png
+endif
+
+ifeq ($(BR2_PACKAGE_CAIRO_SVG),y)
+ CAIRO_CONF_OPT += --enable-svg
+else
+ CAIRO_CONF_OPT += --disable-svg
+endif
$(eval $(call AUTOTARGETS,package,cairo))