Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 12 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | LICENSE = "MPL-1 & LGPLv2.1 & GPLv3+" |
| 14 | LICENSE_${PN} = "MPL-1 & LGPLv2.1" |
| 15 | LICENSE_${PN}-dev = "MPL-1 & LGPLv2.1" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 16 | LICENSE_${PN}-doc = "MPL-1 & LGPLv2.1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | LICENSE_${PN}-gobject = "MPL-1 & LGPLv2.1" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 18 | LICENSE_${PN}-script-interpreter = "MPL-1 & LGPLv2.1" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 19 | LICENSE_${PN}-perf-utils = "GPLv3+" |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 20 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | X11DEPENDS = "virtual/libx11 libsm libxrender libxext" |
| 22 | DEPENDS = "libpng fontconfig pixman glib-2.0 zlib" |
| 23 | |
| 24 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 25 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | |
| 27 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
| 28 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
| 29 | PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb" |
| 30 | PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" |
| 31 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" |
| 32 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 33 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 34 | |
| 35 | #check for TARGET_FPU=soft and inform configure of the result so it can disable some floating points |
| 36 | require cairo-fpu.inc |
| 37 | EXTRA_OECONF += "${@get_cairo_fpu_setting(bb, d)} \ |
| 38 | --enable-tee \ |
| 39 | " |
| 40 | |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 41 | inherit autotools pkgconfig upstream-version-is-even gtk-doc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 42 | |
| 43 | # We don't depend on binutils so we need to disable this |
| 44 | export ac_cv_lib_bfd_bfd_openr="no" |
| 45 | # Ensure we don't depend on LZO |
| 46 | export ac_cv_lib_lzo2_lzo2a_decompress="no" |
| 47 | |
| 48 | BBCLASSEXTEND = "native" |