diff options
author | Peter Kjellerstedt <pkj@axis.com> | 2020-01-11 04:19:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-27 16:48:08 +0000 |
commit | 58a695582051a69d7f942a88fa6a6c44d61d7b38 (patch) | |
tree | 36f7be350f44e47968fc5da20726e313cc6b77d1 /meta/recipes-graphics | |
parent | 5f3bfc5b0f686e56663af7ff444d9beaef594657 (diff) | |
download | poky-58a695582051a69d7f942a88fa6a6c44d61d7b38.tar.gz |
cairo: Add a PACKAGECONFIG "trace" to disable cairo-trace
cairo-trace is the only part of cairo that is licensed as GPL-3.0, and
is normally packaged separately in cairo-perf-utils.
The "trace" PACKAGECONFIG is enabled by default for backwards
compatibility.
(From OE-Core rev: e0c4535fb3c347e19d3dada07a97545bfd48239c)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/cairo/cairo_1.16.0.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-graphics/cairo/cairo_1.16.0.bb b/meta/recipes-graphics/cairo/cairo_1.16.0.bb index e3de3f6164..b772c2ece2 100644 --- a/meta/recipes-graphics/cairo/cairo_1.16.0.bb +++ b/meta/recipes-graphics/cairo/cairo_1.16.0.bb | |||
@@ -40,7 +40,8 @@ X11DEPENDS = "virtual/libx11 libsm libxrender libxext" | |||
40 | 40 | ||
41 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ | 41 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ | 42 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
43 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" | 43 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \ |
44 | trace" | ||
44 | 45 | ||
45 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" | 46 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
46 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" | 47 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
@@ -49,6 +50,7 @@ PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" | |||
49 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" | 50 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" |
50 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" | 51 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" |
51 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" | 52 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" |
53 | PACKAGECONFIG[trace] = "--enable-trace,--disable-trace" | ||
52 | 54 | ||
53 | EXTRA_OECONF += " \ | 55 | EXTRA_OECONF += " \ |
54 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ | 56 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ |
@@ -66,6 +68,8 @@ do_install_append () { | |||
66 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* | 68 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* |
67 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* | 69 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* |
68 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* | 70 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* |
71 | rmdir -p --ignore-fail-on-non-empty ${D}${bindir} | ||
72 | rmdir -p --ignore-fail-on-non-empty ${D}${libdir}/cairo | ||
69 | } | 73 | } |
70 | 74 | ||
71 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" | 75 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" |