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 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 13 | LICENSE = "MPL-1.1 & LGPLv2.1 & GPLv3+" |
| 14 | LICENSE_${PN} = "MPL-1.1 & LGPLv2.1" |
| 15 | LICENSE_${PN}-dev = "MPL-1.1 & LGPLv2.1" |
| 16 | LICENSE_${PN}-doc = "MPL-1.1 & LGPLv2.1" |
| 17 | LICENSE_${PN}-gobject = "MPL-1.1 & LGPLv2.1" |
| 18 | LICENSE_${PN}-script-interpreter = "MPL-1.1 & LGPLv2.1" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | LICENSE_${PN}-perf-utils = "GPLv3+" |
| 20 | |
| 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77" |
| 22 | |
| 23 | DEPENDS = "fontconfig glib-2.0 libpng pixman zlib" |
| 24 | |
| 25 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ |
| 26 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ |
| 27 | file://CVE-2018-19876.patch \ |
| 28 | file://CVE-2019-6461.patch \ |
| 29 | file://CVE-2019-6462.patch \ |
| 30 | " |
| 31 | |
| 32 | SRC_URI[md5sum] = "f19e0353828269c22bd72e271243a552" |
| 33 | SRC_URI[sha256sum] = "5e7b29b3f113ef870d1e3ecf8adf21f923396401604bda16d44be45e66052331" |
| 34 | |
| 35 | inherit autotools pkgconfig upstream-version-is-even gtk-doc multilib_script |
| 36 | |
| 37 | MULTILIB_SCRIPTS = "${PN}-perf-utils:${bindir}/cairo-trace" |
| 38 | |
| 39 | X11DEPENDS = "virtual/libx11 libsm libxrender libxext" |
| 40 | |
| 41 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
| 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
| 43 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" |
| 44 | |
| 45 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
| 46 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
| 47 | PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb" |
| 48 | PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" |
| 49 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" |
| 50 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" |
| 51 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" |
| 52 | |
| 53 | EXTRA_OECONF += " \ |
| 54 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ |
| 55 | --enable-tee \ |
| 56 | " |
| 57 | |
| 58 | # We don't depend on binutils so we need to disable this |
| 59 | export ac_cv_lib_bfd_bfd_openr="no" |
| 60 | # Ensure we don't depend on LZO |
| 61 | export ac_cv_lib_lzo2_lzo2a_decompress="no" |
| 62 | |
| 63 | do_install_append () { |
| 64 | rm -rf ${D}${bindir}/cairo-sphinx |
| 65 | rm -rf ${D}${libdir}/cairo/cairo-fdr* |
| 66 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* |
| 67 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* |
| 68 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* |
| 69 | } |
| 70 | |
| 71 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" |
| 72 | |
| 73 | SUMMARY_cairo-gobject = "The Cairo library GObject wrapper library" |
| 74 | DESCRIPTION_cairo-gobject = "A GObject wrapper library for the Cairo API." |
| 75 | |
| 76 | SUMMARY_cairo-script-interpreter = "The Cairo library script interpreter" |
| 77 | DESCRIPTION_cairo-script-interpreter = "The Cairo script interpreter implements \ |
| 78 | CairoScript. CairoScript is used by tracing utilities to enable the ability \ |
| 79 | to replay rendering." |
| 80 | |
| 81 | DESCRIPTION_cairo-perf-utils = "The Cairo library performance utilities" |
| 82 | |
| 83 | FILES_${PN} = "${libdir}/libcairo.so.*" |
| 84 | FILES_${PN}-gobject = "${libdir}/libcairo-gobject.so.*" |
| 85 | FILES_${PN}-script-interpreter = "${libdir}/libcairo-script-interpreter.so.*" |
| 86 | FILES_${PN}-perf-utils = "${bindir}/cairo-trace* ${libdir}/cairo/*.la ${libdir}/cairo/libcairo-trace.so" |
| 87 | |
| 88 | BBCLASSEXTEND = "native nativesdk" |
| 89 | |
| 90 | UPSTREAM_CHECK_REGEX = "cairo-(?P<pver>\d+(\.\d+)+).tar.xz" |