flatpak: Use ffmpeg-full instead of manual extension

Freedesktop 24.08 provides libheif with a heic extension in ffmpeg-full
extension.
This commit is contained in:
Sophie Herold 2024-09-12 03:40:57 +02:00
parent 1f28884847
commit 3a680e657b

View file

@ -45,18 +45,17 @@
"*.a" "*.a"
], ],
"add-extensions": { "add-extensions": {
/* Exile HEIC (x265) codec into extension */ "org.freedesktop.Platform.ffmpeg-full": {
"org.gnome.Loupe.Devel.HEIC": { "version": "24.08",
/* Relative to app dir */ "directory": "lib/ffmpeg",
"directory": "lib/libheif-heic", "add-ld-path": ".",
/* Relative to directory above */ "no-autodownload": false,
"add-ld-path": "lib", "autodelete": false
/* Remove extension data from main flatpak package */
"bundle": true,
/* Remove this extension when Loupe is deinstalled */
"autodelete": true
} }
}, },
"cleanup-commands": [
"mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"
],
"modules": [ "modules": [
{ {
"name": "geocode-glib", "name": "geocode-glib",
@ -103,52 +102,6 @@
} }
] ]
}, },
{
/* HEIC (x265) decoder */
"name": "libde265",
"buildsystem": "cmake",
"config-opts": [
/* Install into folder for extension */
"-DCMAKE_INSTALL_PREFIX=/app/lib/libheif-heic",
"-DENABLE_SDL=Off"
],
"sources": [
{
"type": "git",
"url": "https://github.com/strukturag/libde265.git",
"tag": "v1.0.15"
}
]
},
{
"name": "libheif",
"buildsystem": "cmake",
"config-opts": [
/* Build HEIC (x265) as plugin */
"-DWITH_LIBDE265_PLUGIN=On",
"-DPLUGIN_DIRECTORY=/app/lib/libheif-heic/lib",
"-DLIBDE265_INCLUDE_DIR=/app/lib/libheif-heic/include",
"-DLIBDE265_PKGCONF_LIBRARY_DIRS=/app/lib/libheif-heic/lib",
/* Turn all encoders off */
"-DWITH_X265=Off",
"-DWITH_SvtEnc=Off",
"-DWITH_SvtEnc_PLUGIN=Off",
"-DWITH_AOM_ENCODER=Off",
/* Turn off plugins for AV1 */
"-DWITH_RAV1E_PLUGIN=Off",
/* Turn off unused AV1 decoders */
"-DWITH_RAV1E=Off",
/* No need for examples */
"-DWITH_EXAMPLES=Off"
],
"sources": [
{
"type": "git",
"url": "https://github.com/strukturag/libheif.git",
"tag": "v1.17.6"
}
]
},
{ {
"name": "glycin", "name": "glycin",
"buildsystem": "meson", "buildsystem": "meson",