blob: 1e45318dde3bb8fbe243a587b88c7ecaea845fc3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "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 & GPLv3+"
13LICENSE_${PN} = "MPL-1 & LGPLv2.1"
14LICENSE_${PN}-dev = "MPL-1 & LGPLv2.1"
15LICENSE_${PN}-gobject = "MPL-1 & LGPLv2.1"
16LICENSE_${PN}-perf-utils = "GPLv3+"
17X11DEPENDS = "virtual/libx11 libsm libxrender libxext"
18DEPENDS = "libpng fontconfig pixman glib-2.0 zlib"
19
20PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \
21 ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
22
23PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}"
24PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb"
25PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb"
26PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind"
27PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl"
28PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2"
29
30#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
31require cairo-fpu.inc
32EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)} \
33 --enable-tee \
34 "
35
36inherit autotools pkgconfig
37
38# We don't depend on binutils so we need to disable this
39export ac_cv_lib_bfd_bfd_openr="no"
40# Ensure we don't depend on LZO
41export ac_cv_lib_lzo2_lzo2a_decompress="no"
42
43BBCLASSEXTEND = "native"
44
45CFLAGS += "-ffat-lto-objects"