f3d: Add opencascade-occt & assimp plugins

This enables support for:
- Assimp plugin (FBX, OFF, DAE, DXF, X and 3MF)
- OpenCASCADE plugin (STEP and IGES files)
This commit is contained in:
adisbladis 2024-07-26 17:10:36 +12:00
parent 733453ac54
commit fdc3257164

View File

@ -12,6 +12,9 @@
, Cocoa
, OpenGL
, python3Packages
, opencascade-occt
, assimp
, fontconfig
, withManual ? !stdenv.isDarwin
, withPythonBinding ? false
}:
@ -42,6 +45,9 @@ stdenv.mkDerivation rec {
buildInputs = [
vtk_9
opencascade-occt
assimp
fontconfig
] ++ lib.optionals stdenv.isDarwin [
Cocoa
OpenGL
@ -58,6 +64,8 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_INCLUDEDIR=include"
"-DCMAKE_INSTALL_BINDIR=bin"
"-DF3D_MODULE_EXTERNAL_RENDERING=ON"
"-DF3D_PLUGIN_BUILD_ASSIMP=ON"
"-DF3D_PLUGIN_BUILD_OCCT=ON"
] ++ lib.optionals withManual [
"-DF3D_LINUX_GENERATE_MAN=ON"
] ++ lib.optionals withPythonBinding [