[eog/friemann/flatpak-webp] flatpak: Add webp pixbuf loader to the build
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog/friemann/flatpak-webp] flatpak: Add webp pixbuf loader to the build
- Date: Wed, 10 Aug 2022 20:20:26 +0000 (UTC)
commit c897796aede1d4d708828ddc85993c62bf020c68
Author: Felix Riemann <friemann gnome org>
Date: Wed Aug 10 22:16:24 2022 +0200
flatpak: Add webp pixbuf loader to the build
Since 1eb9734e2 eog assumes the webp loader to be present. However the
loader is not included in the Flatpak runtime yet, so we need to build
it ourselves.
This mirrors the build process that is used in the Flathub build that
creates a new cache file for gdk-pixbuf that enables the new loader and
keeps the loaders included with the runtime working.
Fixes #250.
org.gnome.Eog.json | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/org.gnome.Eog.json b/org.gnome.Eog.json
index fe68c1dd..001a32bb 100644
--- a/org.gnome.Eog.json
+++ b/org.gnome.Eog.json
@@ -17,7 +17,8 @@
"--filesystem=xdg-run/dconf",
"--filesystem=~/.config/dconf:ro",
"--talk-name=ca.desrt.dconf",
- "--env=DCONF_USER_CONFIG_DIR=.config/dconf"
+ "--env=DCONF_USER_CONFIG_DIR=.config/dconf",
+ "--env=GDK_PIXBUF_MODULE_FILE=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
],
"cleanup" : [
"/include",
@@ -67,7 +68,7 @@
"buildsystem" : "meson",
"config-opts" : [
"-Ddemos=false"
- ],
+ ],
"cleanup" : [
"/bin/*"
],
@@ -92,6 +93,28 @@
}
]
},
+ {
+ "name" : "webp-pixbuf-loader",
+ "buildsystem" : "meson",
+ "config-opts" : [
+ "-Dgdk_pixbuf_moduledir=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/"
+ ],
+ "sources" : [
+ {
+ "type" : "git",
+ "url" : "https://github.com/aruiz/webp-pixbuf-loader.git",
+ "tag" : "0.0.6"
+ }
+ ]
+ },
+ {
+ "name" : "update-pixbuf-loaders",
+ "buildsystem" : "simple",
+ "build-commands" : [
+ "GDK_PIXBUF_MODULEDIR=/app/lib/gdk-pixbuf-2.0/2.10.0/loaders/ gdk-pixbuf-query-loaders >
/app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache",
+ "gdk-pixbuf-query-loaders >> /app/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
+ ]
+ },
{
"name" : "eog",
"buildsystem" : "meson",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]