{ "app-id" : "com.maxrdz.Memories", "runtime" : "org.gnome.Platform", "runtime-version" : "47", "sdk" : "org.gnome.Sdk", "sdk-extensions" : [ "org.freedesktop.Sdk.Extension.rust-stable", "org.freedesktop.Sdk.Extension.llvm18" ], "add-extensions" : { "com.maxrdz.Memories.HEIC": { "directory": "lib/libheif-heic", "add-ld-path": "lib", /* Remove extension data from main flatpak package */ "bundle": true, /* Remove this extension when Memories is uninstalled */ "autodelete": true } }, "command" : "memories", "finish-args" : [ "--device=dri", "--socket=wayland", "--socket=fallback-x11", "--socket=pulseaudio", "--share=ipc", "--env=RUST_BACKTRACE=0", "--talk-name=org.gtk.vfs.*", "--filesystem=xdg-run/gvfs", "--filesystem=xdg-run/gvfsd", "--filesystem=xdg-pictures:create", "--filesystem=xdg-videos:create", "--filesystem=xdg-data:create", "--filesystem=xdg-cache:create" ], "build-options" : { "append-path" : "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin", "build-args" : [ "--share=network" ] }, "cleanup" : [ "/include", "/lib/pkgconfig", "/lib/cmake", "/man", "/share/doc", "/share/gtk-doc", "/share/man", "/share/pkgconfig", "*.la", "*.a" ], "modules" : [ { "name": "x265", "builddir": true, "subdir": "source", "buildsystem": "cmake-ninja", "config-opts": [ "-DCMAKE_BUILD_TYPE=RelWithDebInfo", "-DBUILD_SHARED_LIBS=ON", "-DCMAKE_POSITION_INDEPENDENT_CODE=ON", "-DENABLE_CLI=OFF" ], "sources": [ { "type": "archive", "url": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_3.6.tar.gz", "sha256": "663531f341c5389f460d730e62e10a4fcca3428ca2ca109693867bc5fe2e2807", "x-checker-data": { "type": "anitya", "project-id": 7275, "url-template": "https://bitbucket.org/multicoreware/x265_git/downloads/x265_$version.tar.gz" } } ] }, { "name": "x264", "config-opts": [ "--enable-pic", "--enable-shared", "--disable-cli" ], "sources": [ { "type": "git", "url": "https://code.videolan.org/videolan/x264.git", "commit": "a8b68ebfaa68621b5ac8907610d3335971839d52" } ] }, { "name": "ffmpeg", "config-opts": [ "--disable-ffplay", "--disable-ffprobe", "--disable-doc", "--enable-pic", "--enable-shared", "--disable-doc", "--disable-static", "--enable-gpl", "--enable-version3", "--enable-optimizations", "--enable-vaapi", "--enable-libx264", "--enable-libx265" ], "cleanup": [ "/include", "/lib/pkgconfig", "/share/ffmpeg/examples" ], "sources": [ { "type": "archive", "url": "https://ffmpeg.org/releases/ffmpeg-7.0.1.tar.xz", "sha256": "bce9eeb0f17ef8982390b1f37711a61b4290dc8c2a0c1a37b5857e85bfb0e4ff", "x-checker-data": { "type": "anitya", "project-id": 5405, "versions": { ">=": "7", "<": "8" }, "url-template": "https://ffmpeg.org/releases/ffmpeg-$version.tar.xz" } } ] }, { /* 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-loaders", "buildsystem": "meson", "sources": [ { "type": "archive", "url": "https://download.gnome.org/sources/glycin-loaders/1.0/glycin-loaders-1.0.1.tar.xz", "sha256": "d0f022462ff555856e85ea940474470bb36b37c9ffcbcba63a03fe5e954370cf", "x-checker-data": { "type": "gnome", "name": "glycin-loaders" } } ] }, { "name" : "memories", "buildsystem" : "meson", "builddir" : true, "sources" : [ { "type" : "git", "url" : "../../", "branch" : "main" } ] } ] }