blob: 20e0d2c92af72de2827db53408226ea23a7f4426 [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"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050012
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013LICENSE = "MPL-1 & LGPLv2.1 & GPLv3+"
14LICENSE_${PN} = "MPL-1 & LGPLv2.1"
15LICENSE_${PN}-dev = "MPL-1 & LGPLv2.1"
Brad Bishop6e60e8b2018-02-01 10:27:11 -050016LICENSE_${PN}-doc = "MPL-1 & LGPLv2.1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017LICENSE_${PN}-gobject = "MPL-1 & LGPLv2.1"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050018LICENSE_${PN}-script-interpreter = "MPL-1 & LGPLv2.1"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050019LICENSE_${PN}-perf-utils = "GPLv3+"
Patrick Williamsf1e5d692016-03-30 15:21:19 -050020
Patrick Williamsc124f4f2015-09-15 14:41:29 -050021X11DEPENDS = "virtual/libx11 libsm libxrender libxext"
22DEPENDS = "libpng fontconfig pixman glib-2.0 zlib"
23
24PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050025 ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026
27PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}"
28PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb"
29PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb"
30PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind"
31PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl"
32PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050033PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050034
35#check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points
36require cairo-fpu.inc
37EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)} \
38 --enable-tee \
39 "
40
Patrick Williamsc0f7c042017-02-23 20:41:17 -060041inherit autotools pkgconfig upstream-version-is-even gtk-doc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050042
43# We don't depend on binutils so we need to disable this
44export ac_cv_lib_bfd_bfd_openr="no"
45# Ensure we don't depend on LZO
46export ac_cv_lib_lzo2_lzo2a_decompress="no"
47
48BBCLASSEXTEND = "native"