Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [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" |
| 12 | |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 13 | LICENSE = "(MPL-1.1 | LGPL-2.1-only) & GPL-3.0-or-later" |
| 14 | LICENSE:${PN} = "MPL-1.1 | LGPL-2.1-only" |
| 15 | LICENSE:${PN}-dev = "MPL-1.1 | LGPL-2.1-only" |
| 16 | LICENSE:${PN}-doc = "MPL-1.1 | LGPL-2.1-only" |
| 17 | LICENSE:${PN}-gobject = "MPL-1.1 | LGPL-2.1-only" |
| 18 | LICENSE:${PN}-script-interpreter = "MPL-1.1 | LGPL-2.1-only" |
| 19 | LICENSE:${PN}-perf-utils = "GPL-3.0-or-later" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 20 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77 \ |
| 22 | file://util/cairo-trace/COPYING-GPL-3;md5=d32239bcb673463ab874e80d47fae504" |
| 23 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | |
| 25 | DEPENDS = "fontconfig glib-2.0 libpng pixman zlib" |
| 26 | |
| 27 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 28 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 29 | file://CVE-2018-19876.patch \ |
| 30 | file://CVE-2019-6461.patch \ |
| 31 | file://CVE-2019-6462.patch \ |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 32 | file://CVE-2020-35492.patch \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 33 | " |
| 34 | |
| 35 | SRC_URI[md5sum] = "f19e0353828269c22bd72e271243a552" |
| 36 | SRC_URI[sha256sum] = "5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331" |
| 37 | |
| 38 | inherit autotools pkgconfig upstream-version-is-even gtk-doc multilib_script |
| 39 | |
| 40 | MULTILIB_SCRIPTS = "${PN}-perf-utils:${bindir}/cairo-trace" |
| 41 | |
| 42 | X11DEPENDS = "virtual/libx11 libsm libxrender libxext" |
| 43 | |
| 44 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
| 45 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ |
| 47 | trace" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 48 | PACKAGECONFIG:class-native = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)}" |
| 49 | PACKAGECONFIG:class-nativesdk = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)}" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 50 | |
| 51 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
| 52 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
| 53 | PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb" |
| 54 | PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" |
| 55 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" |
| 56 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" |
| 57 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame^] | 58 | # trace is under GPLv3 |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 59 | PACKAGECONFIG[trace] = "--enable-trace,--disable-trace" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 60 | |
| 61 | EXTRA_OECONF += " \ |
| 62 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ |
| 63 | --enable-tee \ |
| 64 | " |
| 65 | |
| 66 | # We don't depend on binutils so we need to disable this |
| 67 | export ac_cv_lib_bfd_bfd_openr="no" |
| 68 | # Ensure we don't depend on LZO |
| 69 | export ac_cv_lib_lzo2_lzo2a_decompress="no" |
| 70 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 71 | do_install:append () { |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 72 | rm -rf ${D}${bindir}/cairo-sphinx |
| 73 | rm -rf ${D}${libdir}/cairo/cairo-fdr* |
| 74 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* |
| 75 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* |
| 76 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* |
Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame] | 77 | [ ! -d ${D}${bindir} ] || |
| 78 | rmdir -p --ignore-fail-on-non-empty ${D}${bindir} |
| 79 | [ ! -d ${D}${libdir}/cairo ] || |
| 80 | rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/cairo |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" |
| 84 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 85 | SUMMARY:cairo-gobject = "The Cairo library GObject wrapper library" |
| 86 | DESCRIPTION:cairo-gobject = "A GObject wrapper library for the Cairo API." |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 87 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 88 | SUMMARY:cairo-script-interpreter = "The Cairo library script interpreter" |
| 89 | DESCRIPTION:cairo-script-interpreter = "The Cairo script interpreter implements \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 90 | CairoScript. CairoScript is used by tracing utilities to enable the ability \ |
| 91 | to replay rendering." |
| 92 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 93 | DESCRIPTION:cairo-perf-utils = "The Cairo library performance utilities" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 94 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 95 | FILES:${PN} = "${libdir}/libcairo.so.*" |
| 96 | FILES:${PN}-gobject = "${libdir}/libcairo-gobject.so.*" |
| 97 | FILES:${PN}-script-interpreter = "${libdir}/libcairo-script-interpreter.so.*" |
| 98 | FILES:${PN}-perf-utils = "${bindir}/cairo-trace* ${libdir}/cairo/*.la ${libdir}/cairo/libcairo-trace.so" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 99 | |
| 100 | BBCLASSEXTEND = "native nativesdk" |
| 101 | |
| 102 | UPSTREAM_CHECK_REGEX = "cairo-(?P<pver>\d+(\.\d+)+).tar.xz" |