{
 "app_id": "net.sourceforge.GrandOrgue",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sourceforge.GrandOrgue/master/net.sourceforge.GrandOrgue.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=all",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:13:46.577704+00:00",
 "manifest": {
  "app-id": "net.sourceforge.GrandOrgue",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "command": "GrandOrgue",
  "rename-desktop-file": "GrandOrgue.desktop",
  "rename-icon": "GrandOrgue",
  "rename-mime-file": "grandorgue.xml",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=home",
   "--filesystem=xdg-run/pipewire-0"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/linux-audio/fftw3f-static.json",
   {
    "name": "ImageMagick",
    "config-opts": [
     "--disable-shared",
     "--disable-static",
     "--disable-docs"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.2-25.tar.gz",
      "sha256": "ff33d227d2e1744327280e956ec9f7abaebbd8f48277d16cdad906e05e4794b6"
     }
    ]
   },
   {
    "name": "wxWidgets",
    "rm-configure": true,
    "config-opts": [
     "--disable-webview",
     "--enable-markup",
     "--disable-sdltest",
     "--with-gtk=3"
    ],
    "build-options": {
     "cxxflags": "-std=c++11"
    },
    "cleanup": [
     "/bin",
     "/lib/wx/include",
     "/share/aclocal",
     "/share/bakefile",
     "/share/man",
     "*.so"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/wxWidgets/wxWidgets/releases/download/v3.2.10/wxWidgets-3.2.10.tar.bz2",
      "sha256": "d66e929569947a4a5920699539089a9bda83a93e5f4917fb313a61f0c344b896"
     }
    ]
   },
   {
    "name": "yaml-cpp",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DBUILD_SHARED_LIBS=ON",
     "-DYAML_BUILD_SHARED_LIBS=ON",
     "-DYAML_CPP_BUILD_TOOLS=OFF",
     "-DYAML_CPP_BUILD_TESTS=OFF",
     "-DYAML_CPP_BUILD_CONTRIB=OFF",
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jbeder/yaml-cpp/archive/refs/tags/yaml-cpp-0.6.3.tar.gz",
      "sha256": "77ea1b90b3718aa0c324207cb29418f5bced2354c2e483a9523d98c3460af1ed"
     }
    ]
   },
   {
    "name": "RtAudio",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/thestk/rtaudio/archive/refs/tags/6.0.1.tar.gz",
      "sha256": "7206c8b6cee43b474f43d64988fefaadfdcfc4264ed38d8de5f5d0e6ddb0a123"
     }
    ]
   },
   {
    "name": "RtMidi",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/thestk/rtmidi/archive/refs/tags/6.0.0.tar.gz",
      "sha256": "ef7bcda27fee6936b651c29ebe9544c74959d0b1583b716ce80a1c6fea7617f0"
     }
    ]
   },
   {
    "name": "PortAudio",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PortAudio/portaudio/archive/refs/tags/v19.7.0.tar.gz",
      "sha256": "5af29ba58bbdbb7bbcefaaecc77ec8fc413f0db6f4c4e286c40c3e1b83174fa0"
     }
    ]
   },
   {
    "name": "ZitaConvolver",
    "buildsystem": "simple",
    "build-commands": [
     "cd source && make -j $FLATPAK_BUILDER_N_JOBS && make PREFIX=$FLATPAK_DEST LIBDIR=$FLATPAK_DEST/lib install",
     "ln -sf libzita-convolver.so.4.0.3 $FLATPAK_DEST/lib/libzita-convolver.so.4"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/GrandOrgue/ZitaConvolver/archive/refs/tags/upstream/4.0.3.tar.gz",
      "sha256": "7435a6278b18e1b9d35358d34eeb0d918f9952b87ff8bbba40896434107f2bd5"
     }
    ]
   },
   {
    "name": "cpptrace",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCPPTRACE_BUILD_TESTING=Off",
     "-DCPPTRACE_GET_SYMBOLS_WITH_LIBDL=On"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jeremy-rifkin/cpptrace/archive/refs/tags/v1.0.4.tar.gz",
      "sha256": "5c9f5b301e903714a4d01f1057b9543fa540f7bfcc5e3f8bd1748e652e24f9ea"
     }
    ]
   },
   {
    "name": "grandorgue",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cxxflags": "-include cstdint"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCMAKE_SKIP_RPATH=ON",
     "-DBUILD_VERSION=1",
     "-DYAML_CPP_INCLUDE_DIRS=/app/include/yaml-cpp",
     "-DYAML_CPP_LIBRARIES=/app/lib",
     "-DUSE_INTERNAL_RTAUDIO=OFF",
     "-DUSE_INTERNAL_PORTAUDIO=OFF",
     "-DUSE_INTERNAL_ZITACONVOLVER=OFF",
     "-DUSE_INTERNAL_CPPTRACE=OFF"
    ],
    "post-install": [
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/GrandOrgue.desktop",
     "rm ${FLATPAK_DEST}/share/metainfo/GrandOrgue.appdata.xml",
     "install -Dm644 ${FLATPAK_ID}.appdata.xml -t ${FLATPAK_DEST}/share/metainfo",
     "rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1024x1024"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/GrandOrgue/grandorgue/archive/refs/tags/3.17.3-1.tar.gz",
      "sha256": "b0eb8be791f0980be8cce5af70c03bb30fe2dcb52c97c79167e97f2c441d3019",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 235120,
       "url-template": "https://github.com/GrandOrgue/grandorgue/archive/refs/tags/$version.tar.gz",
       "stable-only": true,
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "net.sourceforge.GrandOrgue.appdata.xml"
     }
    ]
   }
  ]
 }
}