From a70d89d8c089151c070be41464495d9505b45121 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Tue, 19 Oct 2021 17:33:26 +0200 Subject: librsvg: update 2.52.0 -> 2.52.2 (From OE-Core rev: 4a5cb680d66e8375a287cd5d87ed82c0832b6e57) Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- ...BA-ToGdkPixbufRGBA-start-naming-types-and.patch | 81 ----------------- .../librsvg/librsvg/0002-New-ToPixel-trait.patch | 100 --------------------- .../librsvg/0003-New-ToCairoARGB-trait.patch | 81 ----------------- .../librsvg/0004-impl-ToPixel-for-CairoARGB.patch | 49 ---------- meta/recipes-gnome/librsvg/librsvg_2.52.0.bb | 76 ---------------- meta/recipes-gnome/librsvg/librsvg_2.52.2.bb | 72 +++++++++++++++ 6 files changed, 72 insertions(+), 387 deletions(-) delete mode 100644 meta/recipes-gnome/librsvg/librsvg/0001-GdkPixbufRGBA-ToGdkPixbufRGBA-start-naming-types-and.patch delete mode 100644 meta/recipes-gnome/librsvg/librsvg/0002-New-ToPixel-trait.patch delete mode 100644 meta/recipes-gnome/librsvg/librsvg/0003-New-ToCairoARGB-trait.patch delete mode 100644 meta/recipes-gnome/librsvg/librsvg/0004-impl-ToPixel-for-CairoARGB.patch delete mode 100644 meta/recipes-gnome/librsvg/librsvg_2.52.0.bb create mode 100644 meta/recipes-gnome/librsvg/librsvg_2.52.2.bb (limited to 'meta/recipes-gnome/librsvg') diff --git a/meta/recipes-gnome/librsvg/librsvg/0001-GdkPixbufRGBA-ToGdkPixbufRGBA-start-naming-types-and.patch b/meta/recipes-gnome/librsvg/librsvg/0001-GdkPixbufRGBA-ToGdkPixbufRGBA-start-naming-types-and.patch deleted file mode 100644 index 6935403138..0000000000 --- a/meta/recipes-gnome/librsvg/librsvg/0001-GdkPixbufRGBA-ToGdkPixbufRGBA-start-naming-types-and.patch +++ /dev/null @@ -1,81 +0,0 @@ -From c175ac8344aa465ffc2c2f3a9d02a7889f597f7f Mon Sep 17 00:00:00 2001 -From: Federico Mena Quintero -Date: Tue, 21 Sep 2021 12:05:27 -0500 -Subject: [PATCH] GdkPixbufRGBA, ToGdkPixbufRGBA - start naming types and - conversion traits for pixel formats - -The code assumes that struct Pixel is always the layout that GdkPixbuf -uses. This is true right now, but is a hidden assumption. Let's -start giving better names to pixel formats. - -Part-of: -Upstream-Status: Backport -Signed-off-by: Alexander Kanavin ---- - src/surface_utils/mod.rs | 23 +++++++++++++++++++++++ - src/surface_utils/shared_surface.rs | 4 ++-- - 2 files changed, 25 insertions(+), 2 deletions(-) - -diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs -index 53bbd00bb..93d3b4f79 100644 ---- a/src/surface_utils/mod.rs -+++ b/src/surface_utils/mod.rs -@@ -22,6 +22,9 @@ use rgb::alt::ARGB8; - #[allow(clippy::upper_case_acronyms)] - pub type CairoARGB = ARGB8; - -+/// GdkPixbuf's endian-independent RGBA8 pixel layout. -+pub type GdkPixbufRGBA = rgb::RGBA8; -+ - /// Analogous to `rgb::FromSlice`, to convert from `[T]` to `[CairoARGB]` - #[allow(clippy::upper_case_acronyms)] - pub trait AsCairoARGB { -@@ -57,6 +60,26 @@ pub enum EdgeMode { - None, - } - -+/// Trait to convert pixels in various formats to RGBA, for GdkPixbuf. -+/// -+/// GdkPixbuf unconditionally uses RGBA ordering regardless of endianness, -+/// but we need to convert to it from Cairo's endian-dependent 0xaarrggbb. -+pub trait ToGdkPixbufRGBA { -+ fn to_pixbuf_rgba(&self) -> GdkPixbufRGBA; -+} -+ -+impl ToGdkPixbufRGBA for Pixel { -+ #[inline] -+ fn to_pixbuf_rgba(&self) -> GdkPixbufRGBA { -+ GdkPixbufRGBA { -+ r: self.r, -+ g: self.g, -+ b: self.b, -+ a: self.a, -+ } -+ } -+} -+ - /// Extension methods for `cairo::ImageSurfaceData`. - pub trait ImageSurfaceDataExt: DerefMut { - /// Sets the pixel at the given coordinates. Assumes the `ARgb32` format. -diff --git a/src/surface_utils/shared_surface.rs b/src/surface_utils/shared_surface.rs -index 9d3289230..476a6f776 100644 ---- a/src/surface_utils/shared_surface.rs -+++ b/src/surface_utils/shared_surface.rs -@@ -15,7 +15,7 @@ use crate::util::clamp; - - use super::{ - iterators::{PixelRectangle, Pixels}, -- AsCairoARGB, CairoARGB, EdgeMode, ImageSurfaceDataExt, Pixel, PixelOps, -+ AsCairoARGB, CairoARGB, EdgeMode, ImageSurfaceDataExt, Pixel, PixelOps, ToGdkPixbufRGBA, - }; - - /// Types of pixel data in a `ImageSurface`. -@@ -342,7 +342,7 @@ impl ImageSurface { - .map(|row| row.as_rgba_mut()) - .zip(self.rows()) - .flat_map(|(dest_row, src_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = Pixel::from(*src).unpremultiply()); -+ .for_each(|(src, dest)| *dest = Pixel::from(*src).unpremultiply().to_pixbuf_rgba()); - - Some(pixbuf) - } diff --git a/meta/recipes-gnome/librsvg/librsvg/0002-New-ToPixel-trait.patch b/meta/recipes-gnome/librsvg/librsvg/0002-New-ToPixel-trait.patch deleted file mode 100644 index c71c93e1a1..0000000000 --- a/meta/recipes-gnome/librsvg/librsvg/0002-New-ToPixel-trait.patch +++ /dev/null @@ -1,100 +0,0 @@ -From 47478d5a8a4b7a05b44f024404137c4c68b62b7e Mon Sep 17 00:00:00 2001 -From: Federico Mena Quintero -Date: Tue, 21 Sep 2021 12:22:15 -0500 -Subject: [PATCH] New ToPixel trait - -Use it where we convert GdkPixbuf pixels to our own Pixel for premultiplication. - -Part-of: -Upstream-Status: Backport -Signed-off-by: Alexander Kanavin ---- - src/surface_utils/mod.rs | 32 +++++++++++++++++++++++++++++ - src/surface_utils/shared_surface.rs | 5 +++-- - 2 files changed, 35 insertions(+), 2 deletions(-) - -diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs -index 93d3b4f79..58953e6a0 100644 ---- a/src/surface_utils/mod.rs -+++ b/src/surface_utils/mod.rs -@@ -25,6 +25,9 @@ pub type CairoARGB = ARGB8; - /// GdkPixbuf's endian-independent RGBA8 pixel layout. - pub type GdkPixbufRGBA = rgb::RGBA8; - -+/// GdkPixbuf's packed RGB pixel layout. -+pub type GdkPixbufRGB = rgb::RGB8; -+ - /// Analogous to `rgb::FromSlice`, to convert from `[T]` to `[CairoARGB]` - #[allow(clippy::upper_case_acronyms)] - pub trait AsCairoARGB { -@@ -68,6 +71,11 @@ pub trait ToGdkPixbufRGBA { - fn to_pixbuf_rgba(&self) -> GdkPixbufRGBA; - } - -+/// Trait to convert pixels in various formats to our own Pixel layout. -+pub trait ToPixel { -+ fn to_pixel(&self) -> Pixel; -+} -+ - impl ToGdkPixbufRGBA for Pixel { - #[inline] - fn to_pixbuf_rgba(&self) -> GdkPixbufRGBA { -@@ -80,6 +88,30 @@ impl ToGdkPixbufRGBA for Pixel { - } - } - -+impl ToPixel for GdkPixbufRGBA { -+ #[inline] -+ fn to_pixel(&self) -> Pixel { -+ Pixel { -+ r: self.r, -+ g: self.g, -+ b: self.b, -+ a: self.a, -+ } -+ } -+} -+ -+impl ToPixel for GdkPixbufRGB { -+ #[inline] -+ fn to_pixel(&self) -> Pixel { -+ Pixel { -+ r: self.r, -+ g: self.g, -+ b: self.b, -+ a: 255, -+ } -+ } -+} -+ - /// Extension methods for `cairo::ImageSurfaceData`. - pub trait ImageSurfaceDataExt: DerefMut { - /// Sets the pixel at the given coordinates. Assumes the `ARgb32` format. -diff --git a/src/surface_utils/shared_surface.rs b/src/surface_utils/shared_surface.rs -index 476a6f776..9fa9a2e15 100644 ---- a/src/surface_utils/shared_surface.rs -+++ b/src/surface_utils/shared_surface.rs -@@ -16,6 +16,7 @@ use crate::util::clamp; - use super::{ - iterators::{PixelRectangle, Pixels}, - AsCairoARGB, CairoARGB, EdgeMode, ImageSurfaceDataExt, Pixel, PixelOps, ToGdkPixbufRGBA, -+ ToPixel, - }; - - /// Types of pixel data in a `ImageSurface`. -@@ -304,13 +305,13 @@ impl ImageSurface { - .map(|row| row.as_rgba()) - .zip(surf.rows_mut()) - .flat_map(|(src_row, dest_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = src.premultiply().into()); -+ .for_each(|(src, dest)| *dest = src.to_pixel().premultiply().into()); - } else { - pixbuf_rows - .map(|row| row.as_rgb()) - .zip(surf.rows_mut()) - .flat_map(|(src_row, dest_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = src.alpha(0xff).into()); -+ .for_each(|(src, dest)| *dest = src.to_pixel().into()); - } - - if let (Some(content_type), Some(bytes)) = (content_type, mime_data) { diff --git a/meta/recipes-gnome/librsvg/librsvg/0003-New-ToCairoARGB-trait.patch b/meta/recipes-gnome/librsvg/librsvg/0003-New-ToCairoARGB-trait.patch deleted file mode 100644 index 8dd45ef0a2..0000000000 --- a/meta/recipes-gnome/librsvg/librsvg/0003-New-ToCairoARGB-trait.patch +++ /dev/null @@ -1,81 +0,0 @@ -From f5768df65cf6277e8ab687a84fdc5d9addaa373d Mon Sep 17 00:00:00 2001 -From: Federico Mena Quintero -Date: Tue, 21 Sep 2021 12:49:53 -0500 -Subject: [PATCH] New ToCairoARGB trait - -Use it in the pixbuf-to-cairo-surface function. - -Part-of: -Upstream-Status: Backport -Signed-off-by: Alexander Kanavin ---- - src/surface_utils/mod.rs | 17 +++++++++++++++++ - src/surface_utils/shared_surface.rs | 8 ++++---- - 2 files changed, 21 insertions(+), 4 deletions(-) - -diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs -index 58953e6a0..3f915cd01 100644 ---- a/src/surface_utils/mod.rs -+++ b/src/surface_utils/mod.rs -@@ -76,6 +76,11 @@ pub trait ToPixel { - fn to_pixel(&self) -> Pixel; - } - -+/// Trait to convert pixels in various formats to Cairo's endian-dependent 0xaarrggbb. -+pub trait ToCairoARGB { -+ fn to_cairo_argb(&self) -> CairoARGB; -+} -+ - impl ToGdkPixbufRGBA for Pixel { - #[inline] - fn to_pixbuf_rgba(&self) -> GdkPixbufRGBA { -@@ -112,6 +117,18 @@ impl ToPixel for GdkPixbufRGB { - } - } - -+impl ToCairoARGB for Pixel { -+ #[inline] -+ fn to_cairo_argb(&self) -> CairoARGB { -+ CairoARGB { -+ r: self.r, -+ g: self.g, -+ b: self.b, -+ a: self.a, -+ } -+ } -+} -+ - /// Extension methods for `cairo::ImageSurfaceData`. - pub trait ImageSurfaceDataExt: DerefMut { - /// Sets the pixel at the given coordinates. Assumes the `ARgb32` format. -diff --git a/src/surface_utils/shared_surface.rs b/src/surface_utils/shared_surface.rs -index 9fa9a2e15..34dfc992e 100644 ---- a/src/surface_utils/shared_surface.rs -+++ b/src/surface_utils/shared_surface.rs -@@ -15,8 +15,8 @@ use crate::util::clamp; - - use super::{ - iterators::{PixelRectangle, Pixels}, -- AsCairoARGB, CairoARGB, EdgeMode, ImageSurfaceDataExt, Pixel, PixelOps, ToGdkPixbufRGBA, -- ToPixel, -+ AsCairoARGB, CairoARGB, EdgeMode, ImageSurfaceDataExt, Pixel, PixelOps, ToCairoARGB, -+ ToGdkPixbufRGBA, ToPixel, - }; - - /// Types of pixel data in a `ImageSurface`. -@@ -305,13 +305,13 @@ impl ImageSurface { - .map(|row| row.as_rgba()) - .zip(surf.rows_mut()) - .flat_map(|(src_row, dest_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = src.to_pixel().premultiply().into()); -+ .for_each(|(src, dest)| *dest = src.to_pixel().premultiply().to_cairo_argb()); - } else { - pixbuf_rows - .map(|row| row.as_rgb()) - .zip(surf.rows_mut()) - .flat_map(|(src_row, dest_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = src.to_pixel().into()); -+ .for_each(|(src, dest)| *dest = src.to_pixel().to_cairo_argb()); - } - - if let (Some(content_type), Some(bytes)) = (content_type, mime_data) { diff --git a/meta/recipes-gnome/librsvg/librsvg/0004-impl-ToPixel-for-CairoARGB.patch b/meta/recipes-gnome/librsvg/librsvg/0004-impl-ToPixel-for-CairoARGB.patch deleted file mode 100644 index caf81af5d0..0000000000 --- a/meta/recipes-gnome/librsvg/librsvg/0004-impl-ToPixel-for-CairoARGB.patch +++ /dev/null @@ -1,49 +0,0 @@ -From c66987d6fa9f9e442eb7dac947f469bcf8c35d48 Mon Sep 17 00:00:00 2001 -From: Federico Mena Quintero -Date: Tue, 21 Sep 2021 12:54:12 -0500 -Subject: [PATCH] impl ToPixel for CairoARGB - -Part-of: -Upstream-Status: Backport -Signed-off-by: Alexander Kanavin ---- - src/surface_utils/mod.rs | 12 ++++++++++++ - src/surface_utils/shared_surface.rs | 2 +- - 2 files changed, 13 insertions(+), 1 deletion(-) - -diff --git a/src/surface_utils/mod.rs b/src/surface_utils/mod.rs -index 3f915cd01..4f751ece4 100644 ---- a/src/surface_utils/mod.rs -+++ b/src/surface_utils/mod.rs -@@ -93,6 +93,18 @@ impl ToGdkPixbufRGBA for Pixel { - } - } - -+impl ToPixel for CairoARGB { -+ #[inline] -+ fn to_pixel(&self) -> Pixel { -+ Pixel { -+ r: self.r, -+ g: self.g, -+ b: self.b, -+ a: self.a, -+ } -+ } -+} -+ - impl ToPixel for GdkPixbufRGBA { - #[inline] - fn to_pixel(&self) -> Pixel { -diff --git a/src/surface_utils/shared_surface.rs b/src/surface_utils/shared_surface.rs -index 34dfc992e..20cd0f40b 100644 ---- a/src/surface_utils/shared_surface.rs -+++ b/src/surface_utils/shared_surface.rs -@@ -343,7 +343,7 @@ impl ImageSurface { - .map(|row| row.as_rgba_mut()) - .zip(self.rows()) - .flat_map(|(dest_row, src_row)| src_row.iter().zip(dest_row.iter_mut())) -- .for_each(|(src, dest)| *dest = Pixel::from(*src).unpremultiply().to_pixbuf_rgba()); -+ .for_each(|(src, dest)| *dest = src.to_pixel().unpremultiply().to_pixbuf_rgba()); - - Some(pixbuf) - } diff --git a/meta/recipes-gnome/librsvg/librsvg_2.52.0.bb b/meta/recipes-gnome/librsvg/librsvg_2.52.0.bb deleted file mode 100644 index 47d3880873..0000000000 --- a/meta/recipes-gnome/librsvg/librsvg_2.52.0.bb +++ /dev/null @@ -1,76 +0,0 @@ -SUMMARY = "Library for rendering SVG files" -DESCRIPTION = "A small library to render Scalable Vector Graphics (SVG), \ -associated with the GNOME Project. It renders SVG files to Cairo surfaces. \ -Cairo is the 2D, antialiased drawing library that GNOME uses to draw things to \ -the screen or to generate output for printing." -HOMEPAGE = "https://gitlab.gnome.org/GNOME/librsvg" -BUGTRACKER = "https://gitlab.gnome.org/GNOME/librsvg/issues" - -LICENSE = "LGPLv2.1+" -LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ - " - -SECTION = "x11/utils" -DEPENDS = "cairo gdk-pixbuf glib-2.0 libcroco libxml2 pango" -BBCLASSEXTEND = "native" - -inherit gnomebase gtk-doc pixbufcache upstream-version-is-even gobject-introspection rust - -SRC_URI += "file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch \ - file://0001-system-deps-src-lib.rs-do-not-probe-into-harcoded-li.patch \ - file://0001-GdkPixbufRGBA-ToGdkPixbufRGBA-start-naming-types-and.patch \ - file://0002-New-ToPixel-trait.patch \ - file://0003-New-ToCairoARGB-trait.patch \ - file://0004-impl-ToPixel-for-CairoARGB.patch \ - file://0001-crossbeam-utils-check-only-the-architecture-not-the-.patch \ - file://0001-vendor-system-deps-sort-dependencies-before-using-th.patch \ - " - -SRC_URI[archive.sha256sum] = "bd821fb3e16494b61f5185addd23b726b064f203122b3ab4b3d5d7a44e6bf393" - -# librsvg is still autotools-based, but is calling cargo from its automake-driven makefiles -# so we cannot use cargo class directly, but still need bits and pieces from it -# for cargo to be happy -BASEDEPENDS:append = " cargo-native" - -export RUST_BACKTRACE = "full" -export RUSTFLAGS -export RUST_TARGET_PATH - -export RUST_TARGET = "${HOST_SYS}" - -# rust-cross writes the target linker binary into target json definition without any flags. -# This breaks here because the linker isn't going to work without at least knowing where -# the sysroot is. So copy the json to workdir, and patch in the path to wrapper from rust class -# which supplies the needed flags. -do_compile:prepend() { - cp ${STAGING_LIBDIR_NATIVE}/rustlib/${HOST_SYS}.json ${WORKDIR} - cp ${STAGING_LIBDIR_NATIVE}/rustlib/${BUILD_SYS}.json ${WORKDIR} - sed -ie 's,"linker": ".*","linker": "${RUST_TARGET_CC}",g' ${WORKDIR}/${HOST_SYS}.json - RUST_TARGET_PATH="${WORKDIR}" - export RUST_TARGET_PATH -} - -# Issue only on windows -CVE_CHECK_WHITELIST += "CVE-2018-1000041" - -CACHED_CONFIGUREVARS = "ac_cv_path_GDK_PIXBUF_QUERYLOADERS=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" - -PACKAGECONFIG ??= "gdkpixbuf" -# The gdk-pixbuf loader -PACKAGECONFIG[gdkpixbuf] = "--enable-pixbuf-loader,--disable-pixbuf-loader,gdk-pixbuf-native" - -do_install:append() { - # Loadable modules don't need .a or .la on Linux - rm -f ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.a ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.la -} - -PACKAGES =+ "librsvg-gtk rsvg" -FILES:rsvg = "${bindir}/rsvg* \ - ${datadir}/pixmaps/svg-viewer.svg \ - ${datadir}/themes" -FILES:librsvg-gtk = "${libdir}/gdk-pixbuf-2.0/*/*/*.so \ - ${datadir}/thumbnailers/librsvg.thumbnailer" -RRECOMMENDS:librsvg-gtk = "gdk-pixbuf-bin" - -PIXBUF_PACKAGES = "librsvg-gtk" diff --git a/meta/recipes-gnome/librsvg/librsvg_2.52.2.bb b/meta/recipes-gnome/librsvg/librsvg_2.52.2.bb new file mode 100644 index 0000000000..7ab8136a8d --- /dev/null +++ b/meta/recipes-gnome/librsvg/librsvg_2.52.2.bb @@ -0,0 +1,72 @@ +SUMMARY = "Library for rendering SVG files" +DESCRIPTION = "A small library to render Scalable Vector Graphics (SVG), \ +associated with the GNOME Project. It renders SVG files to Cairo surfaces. \ +Cairo is the 2D, antialiased drawing library that GNOME uses to draw things to \ +the screen or to generate output for printing." +HOMEPAGE = "https://gitlab.gnome.org/GNOME/librsvg" +BUGTRACKER = "https://gitlab.gnome.org/GNOME/librsvg/issues" + +LICENSE = "LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \ + " + +SECTION = "x11/utils" +DEPENDS = "cairo gdk-pixbuf glib-2.0 libcroco libxml2 pango" +BBCLASSEXTEND = "native" + +inherit gnomebase gtk-doc pixbufcache upstream-version-is-even gobject-introspection rust + +SRC_URI += "file://0001-Makefile.am-pass-rust-target-to-cargo-also-when-not-.patch \ + file://0001-system-deps-src-lib.rs-do-not-probe-into-harcoded-li.patch \ + file://0001-crossbeam-utils-check-only-the-architecture-not-the-.patch \ + file://0001-vendor-system-deps-sort-dependencies-before-using-th.patch \ + " + +SRC_URI[archive.sha256sum] = "03d2887c18ffb906e1a60f97fe46a7169f69aa28d6db5d285748f3618b093427" + +# librsvg is still autotools-based, but is calling cargo from its automake-driven makefiles +# so we cannot use cargo class directly, but still need bits and pieces from it +# for cargo to be happy +BASEDEPENDS:append = " cargo-native" + +export RUST_BACKTRACE = "full" +export RUSTFLAGS +export RUST_TARGET_PATH + +export RUST_TARGET = "${HOST_SYS}" + +# rust-cross writes the target linker binary into target json definition without any flags. +# This breaks here because the linker isn't going to work without at least knowing where +# the sysroot is. So copy the json to workdir, and patch in the path to wrapper from rust class +# which supplies the needed flags. +do_compile:prepend() { + cp ${STAGING_LIBDIR_NATIVE}/rustlib/${HOST_SYS}.json ${WORKDIR} + cp ${STAGING_LIBDIR_NATIVE}/rustlib/${BUILD_SYS}.json ${WORKDIR} + sed -ie 's,"linker": ".*","linker": "${RUST_TARGET_CC}",g' ${WORKDIR}/${HOST_SYS}.json + RUST_TARGET_PATH="${WORKDIR}" + export RUST_TARGET_PATH +} + +# Issue only on windows +CVE_CHECK_WHITELIST += "CVE-2018-1000041" + +CACHED_CONFIGUREVARS = "ac_cv_path_GDK_PIXBUF_QUERYLOADERS=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders" + +PACKAGECONFIG ??= "gdkpixbuf" +# The gdk-pixbuf loader +PACKAGECONFIG[gdkpixbuf] = "--enable-pixbuf-loader,--disable-pixbuf-loader,gdk-pixbuf-native" + +do_install:append() { + # Loadable modules don't need .a or .la on Linux + rm -f ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.a ${D}${libdir}/gdk-pixbuf-2.0/*/loaders/*.la +} + +PACKAGES =+ "librsvg-gtk rsvg" +FILES:rsvg = "${bindir}/rsvg* \ + ${datadir}/pixmaps/svg-viewer.svg \ + ${datadir}/themes" +FILES:librsvg-gtk = "${libdir}/gdk-pixbuf-2.0/*/*/*.so \ + ${datadir}/thumbnailers/librsvg.thumbnailer" +RRECOMMENDS:librsvg-gtk = "gdk-pixbuf-bin" + +PIXBUF_PACKAGES = "librsvg-gtk" -- cgit v1.2.3-54-g00ecf