{
 "app_id": "net.meshlab.MeshLab",
 "source_url": "https://raw.githubusercontent.com/flathub/net.meshlab.MeshLab/master/net.meshlab.MeshLab.yaml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--device=dri",
  "--filesystem=/media",
  "--filesystem=/tmp",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=/run/media",
  "--filesystem=host",
  "--filesystem=xdg-run/gvfs",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 10,
 "fetched_at": "2026-09-17T16:13:36.898746+00:00",
 "manifest": {
  "app-id": "net.meshlab.MeshLab",
  "runtime": "org.kde.Platform",
  "sdk": "org.kde.Sdk",
  "runtime-version": "5.15-25.08",
  "command": "meshlab",
  "rename-desktop-file": "meshlab.desktop",
  "rename-icon": "meshlab",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--filesystem=/tmp",
   "--filesystem=host",
   "--filesystem=/run/media",
   "--filesystem=/media",
   "--filesystem=xdg-run/gvfs"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/aclocal",
   "/share/doc",
   "/share/info",
   "/share/man",
   "*.la",
   "*.a"
  ],
  "modules": [
   "shared-modules/glew/glew.json",
   "shared-modules/glu/glu-9.json",
   {
    "name": "Boost",
    "buildsystem": "simple",
    "build-commands": [
     "./bootstrap.sh --prefix=/app --with-libraries=filesystem,regex",
     "./b2 install link=static runtime-link=static cxxflags=\"-fPIC\" -j $FLATPAK_BUILDER_N_JOBS"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://archives.boost.io/release/1.92.0/source/boost_1_92_0.tar.bz2",
      "sha256": "5c1d40cb8e19adbf740a4ec2da35b3e58f3f5804b1dce44deb53df72193cbc6c",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 6845,
       "stable-only": true,
       "url-template": "https://archives.boost.io/release/$version/source/boost_${major}_${minor}_${patch}.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "CGAL",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=Release",
     "-DCGAL_HEADER_ONLY=ON"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/CGAL/cgal/releases/download/v6.2/CGAL-6.2.tar.xz",
      "sha256": "fbc32816745e871a5cbdeb6245317e9dbf10ae1a957b0ab1edb00b4fde00ba8d",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 273,
       "stable-only": true,
       "url-template": "https://github.com/CGAL/cgal/releases/download/v$version/CGAL-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "Eigen3",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://gitlab.com/libeigen/eigen/-/archive/5.0.1/eigen-5.0.1.tar.bz2",
      "sha256": "e4de6b08f33fd8b8985d2f204381408c660bffa6170ac65b68ae1bd3cd575c0a",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13751,
       "stable-only": true,
       "url-template": "https://gitlab.com/libeigen/eigen/-/archive/$version/eigen-$version.tar.bz2"
      }
     }
    ]
   },
   {
    "name": "lib3ds",
    "buildsystem": "autotools",
    "config-opts": [
     "--disable-shared",
     "--with-pic"
    ],
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/lib3ds/lib3ds-1.3.0.zip",
      "sha256": "f5b00c302955a67fa5fb1f2d3f2583767cdc61fdbc6fd843c0c7c9d95c5629e3"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -vfi"
      ]
     }
    ]
   },
   {
    "name": "TBB",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DTBB_TEST=OFF",
     "-DTBB_EXAMPLES=OFF"
    ],
    "builddir": true,
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v2023.1.0.tar.gz",
      "sha256": "191288b52e1e6b17198000b64d77d194bb65e791be46ebc606e9b091781e2070",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 8217,
       "stable-only": true,
       "url-template": "https://github.com/oneapi-src/oneTBB/archive/refs/tags/v$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "Xerces-C",
    "buildsystem": "cmake-ninja",
    "cleanup": [
     "/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/apache/xerces-c/archive/refs/tags/v3.3.0.tar.gz",
      "sha256": "0f28ea2d7a0a3824d326c8bc4be26a3bb01dde289663beb6f15b241f80cbd3ae"
     },
     {
      "type": "patch",
      "path": "xerces-cpp17.patch"
     }
    ]
   },
   {
    "name": "MeshLab",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE:STRING=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cnr-isti-vclab/meshlab.git",
      "tag": "MeshLab-2025.07",
      "commit": "dc48b91ae562756a6988048c5d5c7f1d2b687256",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^(MeshLab-[\\d.]+)$"
      }
     },
     {
      "type": "git",
      "url": "https://github.com/alemuntoni/meshlab-external-libraries.git",
      "tag": "2025.07",
      "commit": "fa745655c9b313506110afc54d8fbfbb51bca5ad",
      "dest": "src/external"
     },
     {
      "type": "patch",
      "path": "lib3mf-fix-include.patch",
      "options": [
       "-d",
       "src/external"
      ]
     }
    ]
   },
   {
    "name": "MeshLab-appdata",
    "buildsystem": "simple",
    "build-commands": [
     "desktop-file-edit --set-icon=$FLATPAK_ID /app/share/applications/meshlab.desktop",
     "install -Dm644 $FLATPAK_ID.appdata.xml /app/share/metainfo/$FLATPAK_ID.appdata.xml"
    ],
    "sources": [
     {
      "type": "file",
      "path": "net.meshlab.MeshLab.appdata.xml"
     }
    ]
   }
  ]
 }
}