summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/cairo/cairo.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/cairo/cairo.inc')
-rw-r--r--meta/recipes-graphics/cairo/cairo.inc39
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc
new file mode 100644
index 0000000000..cd375597f0
--- /dev/null
+++ b/meta/recipes-graphics/cairo/cairo.inc
@@ -0,0 +1,39 @@
1SUMMARY = "The Cairo 2D vector graphics library"
2DESCRIPTION = "Cairo is a multi-platform library providing anti-aliased \
3vector-based rendering for multiple target backends. Paths consist \
4of line segments and cubic splines and can be rendered at any width \
5with various join and cap styles. All colors may be specified with \
6optional translucence (opacity/alpha) and combined using the \
7extended Porter/Duff compositing algebra as found in the X Render \
8Extension."
9HOMEPAGE = "http://cairographics.org"
10BUGTRACKER = "http://bugs.freedesktop.org"
11SECTION = "libs"
12LICENSE = "MPL-1 & LGPLv2.1"
13X11DEPENDS = "virtual/libx11 libsm libxrender libxext"
14DEPENDS = "libpng fontconfig pixman glib-2.0 zlib"
15
16PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
17 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
18PACKAGECONFIG[x11] = "--with-x=yes,--without-x,${X11DEPENDS}"
19PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb"
20PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind"
21PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl"
22PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2"
23
24#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
25require cairo-fpu.inc
26EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)} \
27 --enable-tee \
28 "
29
30inherit autotools pkgconfig
31
32# We don't depend on binutils so we need to disable this
33export ac_cv_lib_bfd_bfd_openr="no"
34# Ensure we don't depend on LZO
35export ac_cv_lib_lzo2_lzo2a_decompress="no"
36
37BBCLASSEXTEND = "native"
38
39CFLAGS += "-ffat-lto-objects"