gnu: opencascade-occt: Update to 7.9.3.

* gnu/packages/maths.scm (opencascade-occt): Update to 7.9.3.
[inputs]: Remove tbb-2020; add freeimage and onetbb.
[source]: Update snippet.
[arguments]: Use G-Expressions.
<#:configure-flags>: Enable ’use_freeimage flag.
[inputs]: Add freeimage and onetbb, delete tbb-2020.

Merges guix/guix!5489

Change-Id: I0c17894e1577d09c53216ee193f7151d28f20a79
This commit is contained in:
Cayetano Santos 2026-01-09 11:29:26 +01:00
parent 7ad8d82534
commit 83cf571ee1
No known key found for this signature in database
GPG key ID: BF5CDF4DF6BF6682

View file

@ -3474,7 +3474,7 @@ script files.")
(define-public opencascade-occt
(package
(name "opencascade-occt")
(version "7.6.2")
(version "7.9.3")
(properties
'((release-tag-prefix . "^V")
(release-tag-version-delimiter . "_")))
@ -3489,38 +3489,31 @@ script files.")
version)))))
(file-name (git-file-name name version))
(sha256
(base32 "07z5d83vm9f50an7vhimzl7gbmri1dn6p2g999l5fgyaj5sg5f02"))
(modules '((guix build utils)))
(base32 "1wmrbr5yar3iz1c80h6diyqigd8hv05j7wral2kkrbvhzpwjd7k6"))
(snippet
'(begin
#~(begin
(use-modules (guix build utils))
;; Remove files specific to non-free operating systems.
(delete-file-recursively "samples/ios")
(delete-file-recursively "samples/mfc")
(delete-file-recursively "samples/qt/FuncDemo")
(delete-file "genconf.bat")
(delete-file "gendoc.bat")
(delete-file "genproj.bat")
(delete-file "upgrade.bat")
;; Remove references to deleted files.
(substitute* "dox/FILES_HTML.txt"
((".*standard.*") "" )
((".*UIKitSample.*") ""))
#t))))
((".*UIKitSample.*") ""))))))
(build-system cmake-build-system)
(arguments
'(;; There is no test target for make. OCCT provides an
;; 'Automated Testing System', which may be accessed after
;; installation via the draw.sh script. draw.sh is located in
;; the bin directory. For details see:
;; https://www.opencascade.com/doc/occt-7.3.0/overview/html/\
;; occt_dev_guides__tests.html
#:tests? #f
;; Configure without freeimage: attempting to link against the
;; freeimage version 3.17 library leads to 'undefined
;; reference' errors.
#:configure-flags
(list "-DCMAKE_CXX_FLAGS=-fpermissive" ;from unsigned char* to char*
"-DUSE_FREEIMAGE:BOOL=OFF"
(list
;; There is no test target for make. OCCT provides an
;; 'Automated Testing System', which may be accessed after
;; installation via the draw.sh script. draw.sh is located in
;; the bin directory. For details see:
;; https://www.opencascade.com/doc/occt-7.3.0/overview/html/\
;; occt_dev_guides__tests.html
#:tests? #f
#:configure-flags
#~(list "-DCMAKE_CXX_FLAGS=-fpermissive" ;from unsigned char* to char*
"-DUSE_FREEIMAGE:BOOL=ON"
"-DUSE_TBB:BOOL=ON"
"-DUSE_VTK:BOOL=OFF"
"-DBUILD_DOC_Overview:BOOL=OFF"
@ -3530,13 +3523,13 @@ script files.")
(native-inputs (list doxygen fontconfig))
(inputs
(list freetype
;("freeimage" ,freeimage)
freeimage
glu
libxext
libxi
libxmu
mesa
tbb-2020
onetbb
tcl
tk))
;; TODO: build Overview documentation and add 'doc' output.