{
 "app_id": "org.olivevideoeditor.Olive",
 "source_url": "https://raw.githubusercontent.com/flathub/org.olivevideoeditor.Olive/master/org.olivevideoeditor.Olive.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 8,
 "fetched_at": "2026-09-17T16:16:16.067813+00:00",
 "manifest": {
  "app-id": "org.olivevideoeditor.Olive",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "5.15-25.08",
  "command": "olive-editor",
  "rename-mime-icons": [
   "application-vnd.olive-project"
  ],
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=host"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/doc",
   "*.a"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "sources": [
     {
      "type": "archive",
      "url": "https://sourceforge.net/projects/boost/files/boost/1.80.0/boost_1_80_0.tar.bz2",
      "sha256": "1e19565d82e43bc59209a168f5ac899d3ba471d55c7610c677d4ccf2c9c500c0"
     }
    ],
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=system,filesystem,thread,wave",
     "./b2 install variant=release link=shared runtime-link=shared -j $FLATPAK_BUILDER_N_JOBS"
    ]
   },
   {
    "name": "yaml-cpp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DBUILD_SHARED_LIBS=OFF",
     "-DYAML_BUILD_SHARED_LIBS=OFF",
     "-DYAML_CPP_BUILD_TOOLS=OFF",
     "-DYAML_CPP_BUILD_TESTS=OFF",
     "-DYAML_CPP_BUILD_CONTRIB=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.6.3.tar.gz",
      "sha256": "77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed"
     }
    ]
   },
   {
    "name": "tinyxml",
    "config-opts": [
     "--disable-static"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://sources.buildroot.net/tinyxml/tinyxml-2.6.2_2.tar.gz",
      "sha256": "8164c9ad48b9028667768a584d62f7760cfbfb90d0dd6214ad174403058da10c"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "opencolorio",
    "buildsystem": "cmake",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_POSITION_INDEPENDENT_CODE=ON",
     "-DOCIO_BUILD_STATIC=OFF",
     "-DUSE_EXTERNAL_YAML=ON",
     "-DUSE_EXTERNAL_TINYXML=ON",
     "-DCMAKE_CXX_FLAGS='-Wno-error=deprecated-declarations -Wno-error=unused-function -Wno-error=cast-function-type'"
    ],
    "build-options": {
     "arch": {
      "aarch64": {
       "config-opts": [
        "-DOCIO_USE_SSE=NO"
       ]
      }
     }
    },
    "cleanup": [
     "/bin",
     "*.cmake",
     "/cmake"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/imageworks/OpenColorIO/archive/v1.1.1.tar.gz",
      "sha256": "c9b5b9def907e1dafb29e37336b702fff22cc6306d445a13b1621b8a754c14c8"
     },
     {
      "type": "patch",
      "path": "patches/opencolorio-nowerror.patch"
     }
    ]
   },
   {
    "name": "x264",
    "config-opts": [
     "--disable-cli",
     "--enable-shared"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.videolan.org/x264/snapshots/x264-snapshot-20190305-2245-stable.tar.bz2",
      "sha256": "be52c96ef8bd930fbc1ecff03abac9b94976b444ea7641345e08e20d9e594d16"
     }
    ]
   },
   {
    "name": "x265",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "subdir": "source",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://deb.debian.org/debian/pool/main/x/x265/x265_3.4.orig.tar.gz",
      "sha256": "c2047f23a6b729e5c70280d23223cb61b57bfe4ad4e8f1471eeee2a61d148672"
     },
     {
      "type": "patch",
      "path": "patches/x265-cmake.patch"
     }
    ]
   },
   {
    "name": "ffmpeg",
    "config-opts": [
     "--disable-static",
     "--enable-shared",
     "--disable-debug",
     "--disable-doc",
     "--enable-gpl",
     "--disable-programs",
     "--enable-libopus",
     "--enable-libvpx",
     "--enable-librsvg",
     "--enable-libx264",
     "--enable-libx265",
     "--enable-libmp3lame"
    ],
    "cleanup": [
     "/share/ffmpeg/examples"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.ffmpeg.org/releases/ffmpeg-4.2.3.tar.xz",
      "sha256": "9df6c90aed1337634c1fb026fb01c154c29c82a64ea71291ff2da9aacb9aad31"
     },
     {
      "type": "patch",
      "path": "patches/ffmpeg-as-fix.patch"
     }
    ]
   },
   {
    "name": "olive",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "build-options": {
     "prepend-pkg-config-path": "/app/lib/pkgconfig",
     "prepend-ld-library-path": "/app/lib"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DFFMPEG_avutil_INCLUDE_DIR=/app/include",
     "-DFFMPEG_avutil_LIBRARY=/app/lib/libavutil.so",
     "-DFFMPEG_avcodec_LIBRARY=/app/lib/libavcodec.so",
     "-DFFMPEG_avfilter_LIBRARY=/app/lib/libavfilter.so",
     "-DFFMPEG_avformat_LIBRARY=/app/lib/libavformat.so",
     "-DFFMPEG_swresample_INCLUDE_DIR=/app/include",
     "-DFFMPEG_swresample_LIBRARY=/app/lib/libswresample.so",
     "-DFFMPEG_swscale_LIBRARY=/app/lib/libswscale.so"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/olive-editor/olive.git",
      "commit": "67bfa9d46503c464167c26e6a5a0a7ae7096e757"
     },
     {
      "type": "patch",
      "paths": [
       "patches/olive-gl.patch",
       "patches/olive-metainfo.patch"
      ]
     }
    ]
   }
  ]
 }
}