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