{
 "app_id": "org.openscad.OpenSCAD",
 "source_url": "https://raw.githubusercontent.com/flathub/org.openscad.OpenSCAD/master/org.openscad.OpenSCAD.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=/run/spnav.sock:ro",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 15,
 "fetched_at": "2026-09-17T16:16:16.067823+00:00",
 "manifest": {
  "app-id": "org.openscad.OpenSCAD",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "openscad",
  "rename-desktop-file": "openscad.desktop",
  "rename-icon": "openscad",
  "rename-mime-icons": [
   "openscad"
  ],
  "rename-mime-file": "openscad.xml",
  "copy-icon": true,
  "finish-args": [
   "--socket=fallback-x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--share=ipc",
   "--device=dri",
   "--filesystem=home",
   "--filesystem=/run/spnav.sock:ro",
   "--env=SPNAV_SOCKET=/run/spnav.sock"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man",
   "*.a"
  ],
  "modules": [
   {
    "name": "boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --with-libraries=filesystem,program_options,regex,thread,system",
     "./b2 -j $FLATPAK_BUILDER_N_JOBS install --prefix=/app"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.82.0/source/boost_1_82_0.tar.bz2",
      "sha256": "a6e1ab9b0860e6a2881dd7b21fe9f737a095e5f33a3a874afc6a345228597ee6"
     }
    ]
   },
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "freeglut",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "build-options": {
     "cflags": "-std=gnu18 -fcommon",
     "cxxflags": "-fcommon"
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FreeGLUTProject/freeglut/releases/download/v3.4.0/freeglut-3.4.0.tar.gz",
      "sha256": "3c0bcb915d9b180a97edaebd011b7a1de54583a838644dcd42bb0ea0c6f3eaec"
     }
    ]
   },
   {
    "name": "libXmu",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.x.org/archive/individual/lib/libXmu-1.1.4.tar.xz",
      "sha256": "210de3ab9c3e9382572c25d17c2518a854ce6e2c62c5f8315deac7579e758244"
     }
    ]
   },
   {
    "name": "eigen",
    "builddir": true,
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "cleanup": [
     "/share"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.bz2",
      "sha256": "b4c198460eba6f28d34894e3a5710998818515104d6e74e5cc331ce31e46e626"
     }
    ]
   },
   {
    "name": "mpfr",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.mpfr.org/mpfr-current/mpfr-4.2.2.tar.xz",
      "sha256": "b67ba0383ef7e8a8563734e2e889ef5ec3c3b898a01d00fa0a6869ad81c6ce01"
     }
    ]
   },
   {
    "name": "cgal",
    "cleanup": [
     "/bin"
    ],
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/CGAL/cgal/releases/download/v5.5.5/CGAL-5.5.5-library.zip",
      "sha256": "8ff58393cabc90f9cf663f2388edcc0129a3c29b63987439e17378e03837e2ec"
     }
    ]
   },
   {
    "name": "opencsg",
    "no-autogen": true,
    "no-parallel-make": true,
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/floriankirsch/OpenCSG/archive/refs/tags/opencsg-1-5-1-release.tar.gz",
      "sha256": "9dd466ae844c8bf48d61674312f7261bd87980ec3c0b74fd3831f8d7904cbf8d"
     },
     {
      "type": "patch",
      "path": "opencsg-libs.patch"
     }
    ]
   },
   {
    "name": "qscintilla",
    "buildsystem": "qmake",
    "subdir": "src",
    "sources": [
     {
      "type": "archive",
      "url": "https://www.riverbankcomputing.com/static/Downloads/QScintilla/2.13.4/QScintilla_src-2.13.4.tar.gz",
      "sha256": "890c261f31e116f426b0ea03a136d44fc89551ebfd126d7b0bdf8a7197879986"
     },
     {
      "type": "patch",
      "path": "qscintilla-lib-paths.patch"
     }
    ]
   },
   {
    "name": "double-conversion",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/google/double-conversion/archive/refs/tags/v3.2.1.tar.gz",
      "sha256": "e40d236343cad807e83d192265f139481c51fc83a1c49e406ac6ce0a0ba7cd35"
     }
    ]
   },
   {
    "name": "lib3mf",
    "buildsystem": "cmake",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DLIB3MF_TESTS=OFF",
     "-DUSE_INCLUDED_LIBZIP=OFF"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/3MFConsortium/lib3mf/archive/v1.8.1.tar.gz",
      "sha256": "207dd142c9ca86a4fb1a4b2baadbdf579f35e03f9b8bf5c02dae027da5ae9d17"
     },
     {
      "type": "patch",
      "path": "patches/lib3mf-build.patch"
     }
    ]
   },
   {
    "name": "libzip",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DCMAKE_INSTALL_INCLUDEDIR:PATH=/app/include"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://libzip.org/download/libzip-1.9.2.tar.xz",
      "sha256": "c93e9852b7b2dc931197831438fee5295976ee0ba24f8524a8907be5c2ba5937"
     }
    ]
   },
   {
    "name": "libspnav",
    "config-opts": [
     "--disable-debug"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FreeSpacenav/libspnav.git",
      "tag": "v1.1",
      "commit": "1716ccf15fa59a3acaeb9805262fc23613fd6a40"
     }
    ]
   },
   {
    "name": "openscad",
    "buildsystem": "qmake",
    "config-opts": [
     "SPNAV_INCLUDEPATH=/app/include",
     "SPNAV_LIBPATH=/app/lib",
     "QMAKE_CFLAGS_ISYSTEM=",
     "QMAKE_LIBDIR=/app/lib",
     "QMAKE_CXXFLAGS+=-fext-numeric-literals -std=gnu++17",
     "CONFIG-=experimental",
     "CONFIG-=debug"
    ],
    "cleanup": [
     "/share/pixmaps"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.openscad.org/openscad-2021.01.src.tar.gz",
      "sha256": "d938c297e7e5f65dbab1461cac472fc60dfeaa4999ea2c19b31a4184f2d70359"
     },
     {
      "type": "patch",
      "paths": [
       "openscad-comment-parser-fix.patch",
       "openscad-dxf-loader-fix.patch",
       "openscad-mouse-selector-fix.patch",
       "openscad-cgal-projection-fix.patch",
       "openscad-cgal-debug-fix.patch",
       "openscad-join-fix.patch",
       "openscad-double-click-fix.patch",
       "openscad-appdata.patch"
      ]
     }
    ],
    "post-install": [
     "sed -i -e '/<release /d; /<.releases>/i\\    <release date=\"2021-01-31\" version=\"2021.01\"/>' /app/share/metainfo/org.openscad.OpenSCAD.appdata.xml"
    ]
   }
  ]
 }
}