gnu: vtk: Use system libHaru.

* gnu/packages/image-processing.scm (vtk)[snippet]: Delete bundled
libHaru and patch VTK for newer libHaru. Reindent and remove trailing
boolean.
[arguments]: Specify external libHaru in configure flags.
[inputs]: Add libharu.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Paul A. Patience 2022-09-12 19:25:45 +00:00 committed by Christopher Baines
parent 229425fa53
commit c00e1c87f2
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -324,14 +324,18 @@ (define-public vtk
(snippet (snippet
'(begin '(begin
(for-each (for-each
(lambda (dir) (lambda (dir)
(delete-file-recursively (delete-file-recursively
(string-append "ThirdParty/" dir "/vtk" dir))) (string-append "ThirdParty/" dir "/vtk" dir)))
;; pugixml depended upon unconditionally ;; pugixml depended upon unconditionally
'("doubleconversion" "eigen" "expat" "freetype" "gl2ps" '("doubleconversion" "eigen" "expat" "freetype" "gl2ps"
"glew" "hdf5" "jpeg" "jsoncpp" "libproj" "libxml2" "lz4" "glew" "hdf5" "jpeg" "jsoncpp" "libharu" "libproj"
"netcdf" "ogg" "png" "sqlite" "theora" "tiff" "zlib")) "libxml2" "lz4" "netcdf" "ogg" "png" "sqlite" "theora"
#t)))) "tiff" "zlib"))
(substitute* "IO/ExportPDF/vtkPDFContextDevice2D.cxx"
(("\\bHPDF_UINT16 (noPen|dash|dot|denseDot|dashDot|dashDotDot)\\b"
_ var)
(string-append "HPDF_REAL " var)))))))
(properties `((release-monitoring-url . "https://vtk.org/download/"))) (properties `((release-monitoring-url . "https://vtk.org/download/")))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
@ -348,6 +352,7 @@ (define-public vtk
"-DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_libharu=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON"
"-DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON" "-DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON"
@ -381,6 +386,7 @@ (define-public vtk
glew glew
glu glu
hdf5 hdf5
libharu
libjpeg-turbo libjpeg-turbo
jsoncpp jsoncpp
libtheora libtheora