{
 "app_id": "org.speed_dreams.SpeedDreams",
 "source_url": "https://raw.githubusercontent.com/flathub/org.speed_dreams.SpeedDreams/master/org.speed_dreams.SpeedDreams.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all"
 ],
 "module_count": 12,
 "fetched_at": "2026-09-17T16:16:32.159714+00:00",
 "manifest": {
  "app-id": "org.speed_dreams.SpeedDreams",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "speed-dreams-2",
  "finish-args": [
   "--socket=wayland",
   "--share=ipc",
   "--socket=fallback-x11",
   "--device=all",
   "--persist=.speed-dreams-2",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/gtk-doc",
   "/share/man",
   "/share/pkgconfig",
   "*.a",
   "*.la",
   "/share/speed-dreams-2/cmake/"
  ],
  "modules": [
   {
    "name": "glu",
    "config-opts": [
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://mesa.freedesktop.org/archive/glu/glu-9.0.2.tar.xz",
      "sha256": "6e7280ff585c6a1d9dfcdf2fca489251634b3377bfc33c29e4002466a38d02d4"
     }
    ]
   },
   {
    "name": "jasper",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DJAS_ENABLE_OPENGL=ON",
     "-DJAS_ENABLE_LIBJPEG=ON",
     "-DJAS_ENABLE_AUTOMATIC_DEPENDENCIES=OFF",
     "-DCMAKE_SKIP_RPATH=ON",
     "-DALLOW_IN_SOURCE_BUILD=ON",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jasper-software/jasper/archive/refs/tags/version-4.0.0.tar.gz",
      "sha256": "977c4c2e4210f4e37313cd2232d99e73d57ab561917b3c060bcdd5e83a0a13f1"
     }
    ]
   },
   {
    "name": "ogg",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTING=off",
     "-DINSTALL_DOCS=off",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.xiph.org/releases/ogg/libogg-1.3.5.tar.gz",
      "sha256": "0eb4b4b9420a0f51db142ba3f9c64b333f826532dc0f48c6410ae51f4799b664"
     }
    ]
   },
   {
    "name": "vorbis",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_TESTING=off",
     "-DINSTALL_DOCS=off",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.7.tar.gz",
      "sha256": "0e982409a9c3fc82ee06e08205b1355e5c6aa4c36bca58146ef399621b0ce5ab"
     }
    ]
   },
   {
    "name": "openscenegraph",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_DEBUG_POSTFIX=''",
     "-DUSE_3RDPARTY_BIN=Off",
     "-DBUILD_OSG_DEPRECATED_SERIALIZERS=OFF",
     "-DBUILD_OSG_APPLICATIONS=OFF",
     "-DBUILD_OSG_PLUGINS_BY_DEFAULT=OFF",
     "-DOPENTHREADS_ATOMIC_USE_MUTEX=ON",
     "-DBUILD_OSG_PLUGIN_OSG=ON",
     "-DBUILD_OSG_PLUGIN_AC=ON",
     "-DBUILD_OSG_PLUGIN_CURL=ON",
     "-DBUILD_OSG_PLUGIN_DDS=ON",
     "-DBUILD_OSG_PLUGIN_FREETYPE=ON",
     "-DBUILD_OSG_PLUGIN_GLSL=ON",
     "-DBUILD_OSG_PLUGIN_IVE=ON",
     "-DBUILD_OSG_PLUGIN_JPEG=ON",
     "-DBUILD_OSG_PLUGIN_OSG=ON",
     "-DBUILD_OSG_PLUGIN_OSGA=ON",
     "-DBUILD_OSG_PLUGIN_OSGTGZ=ON",
     "-DBUILD_OSG_PLUGIN_PNG=ON",
     "-DBUILD_OSG_PLUGIN_RGB=ON",
     "-DBUILD_OSG_PLUGIN_SHADOW=ON",
     "-DDYNAMIC_OPENSCENEGRAPH=ON",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-3.6.5.tar.gz",
      "sha256": "aea196550f02974d6d09291c5d83b51ca6a03b3767e234a8c0e21322927d1e12",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6848,
       "stable-only": true,
       "url-template": "https://github.com/openscenegraph/OpenSceneGraph/archive/OpenSceneGraph-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "libxmu",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/archive//individual/lib/libXmu-1.2.1.tar.gz",
      "sha256": "bf0902583dd1123856c11e0a5085bd3c6e9886fbbd44954464975fd7d52eb599"
     }
    ]
   },
   {
    "name": "plib",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DBUILD_SHARED_LIBS=O",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://forge.a-lec.org/speed-dreams/plib/archive/v1.8.5-sd3.tar.gz",
      "sha256": "2ac882854467aea9ed077f2c522366bcba50dda2c92b79064230d697a514b37b"
     }
    ]
   },
   {
    "name": "enet",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/lsalzman/enet/archive/refs/tags/v1.3.18.tar.gz",
      "sha256": "28603c895f9ed24a846478180ee72c7376b39b4bb1287b73877e5eae7d96b0dd"
     },
     {
      "type": "script",
      "dest-filename": "autogen.sh",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "cjson",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-D CMAKE_DEBUG_POSTFIX=",
     "-D CJSON_BUILD_LOADER_EXAMPLE=Off",
     "-D ENABLE_CJSON_TEST=OFF",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/DaveGamble/cJSON/archive/refs/tags/v1.7.18.zip",
      "sha256": "cc6d93cc3b659037c34193ecc7be5a874a18c2ac67b24efe82db6a759b486b5d"
     }
    ]
   },
   {
    "name": "minizip",
    "config-opts": [
     "-DCMAKE_DEBUG_POSTFIX=''",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "buildsystem": "cmake-ninja",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/F2I-Consulting/Minizip/archive/refs/tags/v1.3_cmake0.1.tar.gz",
      "sha256": "4ab1ffdc954e10faf2e756bd26e52ac4c339389159725dacb3d9104560f7f1a3"
     },
     {
      "type": "file",
      "path": "patches/minizip-1.3.CMakeLists.txt",
      "dest-filename": "CMakeLists.txt"
     }
    ]
   },
   {
    "name": "rhash",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DUSE_GETTEXT=OFF",
     "-DBUILD_SHARED_LIBS=1",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://deac-riga.dl.sourceforge.net/project/rhash/rhash/1.4.4/rhash-1.4.4-src.tar.gz?viasf=1",
      "sha256": "8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a"
     },
     {
      "type": "dir",
      "path": "patches/rhash/"
     }
    ]
   },
   {
    "name": "speed-dreams2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DOPTION_OFFICIAL_ONLY=ON",
     "-DOPTION_TRACKEDITOR=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://forge.a-lec.org/speed-dreams/speed-dreams-code",
      "tag": "v2.4.2"
     },
     {
      "type": "file",
      "path": "speed-dreams-2.sh"
     },
     {
      "type": "file",
      "path": "org.speed_dreams.SpeedDreams.desktop"
     },
     {
      "type": "file",
      "path": "org.speed_dreams.SpeedDreams.appdata.xml"
     },
     {
      "type": "file",
      "path": "human.xml"
     },
     {
      "type": "file",
      "path": "raceengine.xml"
     }
    ],
    "post-install": [
     "install -Dm755 speed-dreams-2.sh ${FLATPAK_DEST}/bin/speed-dreams-2",
     "install -Dm644 org.speed_dreams.SpeedDreams.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 ${FLATPAK_DEST}/share/games/speed-dreams-2/data/icons/icon.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png",
     "install -Dm644 ${FLATPAK_ID}.appdata.xml ${FLATPAK_DEST}/share/appdata/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 raceengine.xml ${FLATPAK_DEST}/share/speed-dreams-2/config/raceengine.xml",
     "install -Dm644 human.xml ${FLATPAK_DEST}/share/speed-dreams-2/drivers/human/human.xml"
    ]
   }
  ]
 }
}