From c7fe80064ffcae4fbcce15eeb3ac46a8de388058 Mon Sep 17 00:00:00 2001 From: Peter Polidoro Date: Sun, 1 Feb 2026 14:50:18 -0500 Subject: [PATCH] gnu: opencascade-occt: Add RapidJson and Draco support. * gnu/packages/maths.scm (opencascade-occt)[inputs]: Add draco and rapidjson. [arguments]<#:configure-flags>: Enable Draco (for mesh-compression) and RapidJson (for the glTF writer). Change-Id: Id09f31e3be9798c77380ec0958eb8f9fe6d7b71b Signed-off-by: Andreas Enge --- gnu/packages/maths.scm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm index 554cdbb276..8b08d5c1f3 100644 --- a/gnu/packages/maths.scm +++ b/gnu/packages/maths.scm @@ -73,6 +73,7 @@ ;;; Copyright © 2025 nomike Postmann ;;; Copyright © 2025 Reza Housseini ;;; Copyright © 2026 Cayetano Santos +;;; Copyright © 2026 Peter Polidoro ;;; ;;; This file is part of GNU Guix. ;;; @@ -3546,7 +3547,9 @@ script files.") #:tests? #f #:configure-flags #~(list "-DCMAKE_CXX_FLAGS=-fpermissive" ;from unsigned char* to char* + "-DUSE_DRACO:BOOL=ON" "-DUSE_FREEIMAGE:BOOL=ON" + "-DUSE_RAPIDJSON:BOOL=ON" "-DUSE_TBB:BOOL=ON" "-DUSE_VTK:BOOL=OFF" "-DBUILD_DOC_Overview:BOOL=OFF" @@ -3555,7 +3558,8 @@ script files.") "-UCMAKE_INSTALL_LIBDIR"))) (native-inputs (list doxygen fontconfig)) (inputs - (list freetype + (list draco + freetype freeimage glu libxext @@ -3563,6 +3567,7 @@ script files.") libxmu mesa onetbb + rapidjson tcl tk)) ;; TODO: build Overview documentation and add 'doc' output.