@@ -10,7 +10,7 @@ LICENSE = "LGPL-2.1-or-later"
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
SECTION = "x11/utils"
-DEPENDS = "cairo gdk-pixbuf glib-2.0 libxml2 pango python3-docutils-native cargo-native cargo-c-native"
+DEPENDS = "cairo glib-2.0 libxml2 pango python3-docutils-native cargo-native cargo-c-native"
RDEPENDS:${PN}-ptest += "rsvg"
BBCLASSEXTEND = "native nativesdk"
@@ -56,11 +56,14 @@ LDFLAGS += " -L${B}/rsvg"
# needed on ubuntu 20.04/debian 11 to avoid 'undefined reference to `dlsym'' errors
BUILD_LDFLAGS += " -ldl"
-PACKAGECONFIG ??= "gdkpixbuf \
+PACKAGECONFIG ??= "gdkpixbuf gdkpixbuf-loader \
${@bb.utils.contains('PTEST_ENABLED', '1', 'apitest', '', d)} \
${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'vala', '', d)}"
-# The gdk-pixbuf loader
-PACKAGECONFIG[gdkpixbuf] = "-Dpixbuf-loader=enabled,-Dpixbuf-loader=disabled,gdk-pixbuf-native"
+
+PACKAGECONFIG[avif] = "-Davif=enabled,-Davif=disabled,dav1d"
+PACKAGECONFIG[gdkpixbuf] = "-Dpixbuf=enabled,-Dpixbuf=disabled,gdk-pixbuf"
+# The gdk-pixbuf loader (depends on gdkpixbuf)
+PACKAGECONFIG[gdkpixbuf-loader] = "-Dpixbuf-loader=enabled,-Dpixbuf-loader=disabled,gdk-pixbuf-native"
PACKAGECONFIG[vala] = "-Dvala=enabled,-Dvala=disabled"
PACKAGECONFIG[apitest] = "-Dtests=true,-Dtests=false"
The existing gdkpixbuf PACKAGECONFIG is actually for the gdk-pixbuf SVG loader. Rename this to gdkpixbuf-loader and add another PACKAGECONFIG that controls whether gdk-pixbuf support is enabled, and enable this by default to preserve behaviour. Add a new PACKAGECONFIG to enable support for embedded AVIF[1] files. This is disabled out of the box as it depends on dav1d, part of meta-oe. [1] https://en.wikipedia.org/wiki/AVIF Signed-off-by: Ross Burton <ross.burton@arm.com> --- meta/recipes-gnome/librsvg/librsvg_2.61.3.bb | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)