summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul A. Patience <paul@apatience.com>2022-09-12 19:25:45 +0000
committerChristopher Baines <mail@cbaines.net>2022-09-17 19:09:45 +0200
commitc00e1c87f219ab9947204af53afff6ccf812fa91 (patch)
treef0b1fc59c84004e6b650a7da546c5b3a5ab061bc
parent229425fa5360391e08292fdb752af3f3e1c3e117 (diff)
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>
-rw-r--r--gnu/packages/image-processing.scm22
1 files changed, 14 insertions, 8 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index aa8efd97c6e..a8f40c4454a 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -324,14 +324,18 @@ many popular formats.")
324 (snippet 324 (snippet
325 '(begin 325 '(begin
326 (for-each 326 (for-each
327 (lambda (dir) 327 (lambda (dir)
328 (delete-file-recursively 328 (delete-file-recursively
329 (string-append "ThirdParty/" dir "/vtk" dir))) 329 (string-append "ThirdParty/" dir "/vtk" dir)))
330 ;; pugixml depended upon unconditionally 330 ;; pugixml depended upon unconditionally
331 '("doubleconversion" "eigen" "expat" "freetype" "gl2ps" 331 '("doubleconversion" "eigen" "expat" "freetype" "gl2ps"
332 "glew" "hdf5" "jpeg" "jsoncpp" "libproj" "libxml2" "lz4" 332 "glew" "hdf5" "jpeg" "jsoncpp" "libharu" "libproj"
333 "netcdf" "ogg" "png" "sqlite" "theora" "tiff" "zlib")) 333 "libxml2" "lz4" "netcdf" "ogg" "png" "sqlite" "theora"
334 #t)))) 334 "tiff" "zlib"))
335 (substitute* "IO/ExportPDF/vtkPDFContextDevice2D.cxx"
336 (("\\bHPDF_UINT16 (noPen|dash|dot|denseDot|dashDot|dashDotDot)\\b"
337 _ var)
338 (string-append "HPDF_REAL " var)))))))
335 (properties `((release-monitoring-url . "https://vtk.org/download/"))) 339 (properties `((release-monitoring-url . "https://vtk.org/download/")))
336 (build-system cmake-build-system) 340 (build-system cmake-build-system)
337 (arguments 341 (arguments
@@ -348,6 +352,7 @@ many popular formats.")
348 "-DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON" 352 "-DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON"
349 "-DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON" 353 "-DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON"
350 "-DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON" 354 "-DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON"
355 "-DVTK_MODULE_USE_EXTERNAL_VTK_libharu=ON"
351 "-DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON" 356 "-DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON"
352 "-DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON" 357 "-DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON"
353 "-DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON" 358 "-DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON"
@@ -381,6 +386,7 @@ many popular formats.")
381 glew 386 glew
382 glu 387 glu
383 hdf5 388 hdf5
389 libharu
384 libjpeg-turbo 390 libjpeg-turbo
385 jsoncpp 391 jsoncpp
386 libtheora 392 libtheora