diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/cairo/cairo.inc | 48 | ||||
-rw-r--r-- | meta/recipes-graphics/cairo/cairo_1.14.12.bb | 75 |
2 files changed, 57 insertions, 66 deletions
diff --git a/meta/recipes-graphics/cairo/cairo.inc b/meta/recipes-graphics/cairo/cairo.inc deleted file mode 100644 index b432da0166..0000000000 --- a/meta/recipes-graphics/cairo/cairo.inc +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
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 | |||
13 | LICENSE = "MPL-1 & LGPLv2.1 & GPLv3+" | ||
14 | LICENSE_${PN} = "MPL-1 & LGPLv2.1" | ||
15 | LICENSE_${PN}-dev = "MPL-1 & LGPLv2.1" | ||
16 | LICENSE_${PN}-doc = "MPL-1 & LGPLv2.1" | ||
17 | LICENSE_${PN}-gobject = "MPL-1 & LGPLv2.1" | ||
18 | LICENSE_${PN}-script-interpreter = "MPL-1 & LGPLv2.1" | ||
19 | LICENSE_${PN}-perf-utils = "GPLv3+" | ||
20 | |||
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)} \ | ||
25 | ${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ | ||
26 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" | ||
27 | |||
28 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" | ||
29 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" | ||
30 | PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb" | ||
31 | PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" | ||
32 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" | ||
33 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" | ||
34 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" | ||
35 | |||
36 | EXTRA_OECONF += " \ | ||
37 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ | ||
38 | --enable-tee \ | ||
39 | " | ||
40 | |||
41 | inherit autotools pkgconfig upstream-version-is-even gtk-doc | ||
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" | ||
diff --git a/meta/recipes-graphics/cairo/cairo_1.14.12.bb b/meta/recipes-graphics/cairo/cairo_1.14.12.bb index 075ca1ed34..a902c26879 100644 --- a/meta/recipes-graphics/cairo/cairo_1.14.12.bb +++ b/meta/recipes-graphics/cairo/cairo_1.14.12.bb | |||
@@ -1,7 +1,27 @@ | |||
1 | require cairo.inc | 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 | |||
13 | LICENSE = "MPL-1 & LGPLv2.1 & GPLv3+" | ||
14 | LICENSE_${PN} = "MPL-1 & LGPLv2.1" | ||
15 | LICENSE_${PN}-dev = "MPL-1 & LGPLv2.1" | ||
16 | LICENSE_${PN}-doc = "MPL-1 & LGPLv2.1" | ||
17 | LICENSE_${PN}-gobject = "MPL-1 & LGPLv2.1" | ||
18 | LICENSE_${PN}-script-interpreter = "MPL-1 & LGPLv2.1" | ||
19 | LICENSE_${PN}-perf-utils = "GPLv3+" | ||
2 | 20 | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77" | 21 | LIC_FILES_CHKSUM = "file://COPYING;md5=e73e999e0c72b5ac9012424fa157ad77" |
4 | 22 | ||
23 | DEPENDS = "fontconfig glib-2.0 libpng pixman zlib" | ||
24 | |||
5 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ | 25 | SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ |
6 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ | 26 | file://cairo-get_bitmap_surface-bsc1036789-CVE-2017-7475.diff \ |
7 | file://0001-cairo-Fix-CVE-2017-9814.patch \ | 27 | file://0001-cairo-Fix-CVE-2017-9814.patch \ |
@@ -10,16 +30,41 @@ SRC_URI = "http://cairographics.org/releases/cairo-${PV}.tar.xz \ | |||
10 | SRC_URI[md5sum] = "9f0db9dbfca0966be8acd682e636d165" | 30 | SRC_URI[md5sum] = "9f0db9dbfca0966be8acd682e636d165" |
11 | SRC_URI[sha256sum] = "8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16" | 31 | SRC_URI[sha256sum] = "8c90f00c500b2299c0a323dd9beead2a00353752b2092ead558139bd67f7bf16" |
12 | 32 | ||
13 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" | 33 | inherit autotools pkgconfig upstream-version-is-even gtk-doc |
14 | 34 | ||
15 | SUMMARY_${PN} = "The Cairo 2D vector graphics library" | 35 | X11DEPENDS = "virtual/libx11 libsm libxrender libxext" |
16 | DESCRIPTION_${PN} = "Cairo is a multi-platform library providing anti-aliased \ | 36 | |
17 | vector-based rendering for multiple target backends. Paths consist \ | 37 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'directfb', d)} \ |
18 | of line segments and cubic splines and can be rendered at any width \ | 38 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xcb', '', d)} \ |
19 | with various join and cap styles. All colors may be specified with \ | 39 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)}" |
20 | optional translucence (opacity/alpha) and combined using the \ | 40 | |
21 | extended Porter/Duff compositing algebra as found in the X Render \ | 41 | PACKAGECONFIG[x11] = "--with-x=yes -enable-xlib,--with-x=no --disable-xlib,${X11DEPENDS}" |
22 | Extension." | 42 | PACKAGECONFIG[xcb] = "--enable-xcb,--disable-xcb,libxcb" |
43 | PACKAGECONFIG[directfb] = "--enable-directfb=yes,,directfb" | ||
44 | PACKAGECONFIG[valgrind] = "--enable-valgrind=yes,--disable-valgrind,valgrind" | ||
45 | PACKAGECONFIG[egl] = "--enable-egl=yes,--disable-egl,virtual/egl" | ||
46 | PACKAGECONFIG[glesv2] = "--enable-glesv2,--disable-glesv2,virtual/libgles2" | ||
47 | PACKAGECONFIG[opengl] = "--enable-gl,--disable-gl,virtual/libgl" | ||
48 | |||
49 | EXTRA_OECONF += " \ | ||
50 | ${@bb.utils.contains('TARGET_FPU', 'soft', '--disable-some-floating-point', '', d)} \ | ||
51 | --enable-tee \ | ||
52 | " | ||
53 | |||
54 | # We don't depend on binutils so we need to disable this | ||
55 | export ac_cv_lib_bfd_bfd_openr="no" | ||
56 | # Ensure we don't depend on LZO | ||
57 | export ac_cv_lib_lzo2_lzo2a_decompress="no" | ||
58 | |||
59 | do_install_append () { | ||
60 | rm -rf ${D}${bindir}/cairo-sphinx | ||
61 | rm -rf ${D}${libdir}/cairo/cairo-fdr* | ||
62 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* | ||
63 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* | ||
64 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* | ||
65 | } | ||
66 | |||
67 | PACKAGES =+ "cairo-gobject cairo-script-interpreter cairo-perf-utils" | ||
23 | 68 | ||
24 | SUMMARY_cairo-gobject = "The Cairo library GObject wrapper library" | 69 | SUMMARY_cairo-gobject = "The Cairo library GObject wrapper library" |
25 | DESCRIPTION_cairo-gobject = "A GObject wrapper library for the Cairo API." | 70 | DESCRIPTION_cairo-gobject = "A GObject wrapper library for the Cairo API." |
@@ -32,15 +77,9 @@ to replay rendering." | |||
32 | DESCRIPTION_cairo-perf-utils = "The Cairo library performance utilities" | 77 | DESCRIPTION_cairo-perf-utils = "The Cairo library performance utilities" |
33 | 78 | ||
34 | FILES_${PN} = "${libdir}/libcairo.so.*" | 79 | FILES_${PN} = "${libdir}/libcairo.so.*" |
35 | FILES_${PN}-dev += "${libdir}/cairo/*.so" | ||
36 | FILES_${PN}-gobject = "${libdir}/libcairo-gobject.so.*" | 80 | FILES_${PN}-gobject = "${libdir}/libcairo-gobject.so.*" |
37 | FILES_${PN}-script-interpreter = "${libdir}/libcairo-script-interpreter.so.*" | 81 | FILES_${PN}-script-interpreter = "${libdir}/libcairo-script-interpreter.so.*" |
38 | FILES_${PN}-perf-utils = "${bindir}/cairo-trace ${libdir}/cairo/*.la ${libdir}/cairo/libcairo-trace.so.*" | 82 | FILES_${PN}-perf-utils = "${bindir}/cairo-trace ${libdir}/cairo/*.la ${libdir}/cairo/libcairo-trace.so.*" |
83 | FILES_${PN}-dev += "${libdir}/cairo/*.so" | ||
39 | 84 | ||
40 | do_install_append () { | 85 | BBCLASSEXTEND = "native" |
41 | rm -rf ${D}${bindir}/cairo-sphinx | ||
42 | rm -rf ${D}${libdir}/cairo/cairo-fdr* | ||
43 | rm -rf ${D}${libdir}/cairo/cairo-sphinx* | ||
44 | rm -rf ${D}${libdir}/cairo/.debug/cairo-fdr* | ||
45 | rm -rf ${D}${libdir}/cairo/.debug/cairo-sphinx* | ||
46 | } | ||