summaryrefslogtreecommitdiff
path: root/gnu/packages/image-processing.scm
diff options
context:
space:
mode:
authorJohn Darrington <jmd@gnu.org>2017-03-15 21:05:24 +0100
committerLudovic Courtès <ludo@gnu.org>2017-06-02 18:47:06 +0200
commitfb226b43511671bee3463a02eea9e041d2610fef (patch)
tree5c78b00a55847ef82cd49080849434fef2b36d1d /gnu/packages/image-processing.scm
parent0c152cd6e322e5594ba2028319965e8453489766 (diff)
gnu: Move vtk to image-processing.scm.
* gnu/packages/image-processing.scm (vtk): New variable. * gnu/packages/vtk.scm: Delete file. * gnu/local.mk (GNU_SYSTEM_MODULES): Remove it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/image-processing.scm')
-rw-r--r--gnu/packages/image-processing.scm65
1 files changed, 65 insertions, 0 deletions
diff --git a/gnu/packages/image-processing.scm b/gnu/packages/image-processing.scm
index 1753b926c6c..3d34eb2c342 100644
--- a/gnu/packages/image-processing.scm
+++ b/gnu/packages/image-processing.scm
@@ -1,6 +1,9 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 John Darrington <jmd@gnu.org> 2;;; Copyright © 2017 John Darrington <jmd@gnu.org>
3;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> 3;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
4;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
5;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
6;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
4;;; 7;;;
5;;; This file is part of GNU Guix. 8;;; This file is part of GNU Guix.
6;;; 9;;;
@@ -29,6 +32,8 @@
29 #:use-module (gnu packages boost) 32 #:use-module (gnu packages boost)
30 #:use-module (gnu packages compression) 33 #:use-module (gnu packages compression)
31 #:use-module (gnu packages documentation) 34 #:use-module (gnu packages documentation)
35 #:use-module (gnu packages fontutils)
36 #:use-module (gnu packages gl)
32 #:use-module (gnu packages gnome) 37 #:use-module (gnu packages gnome)
33 #:use-module (gnu packages graphics) 38 #:use-module (gnu packages graphics)
34 #:use-module (gnu packages graphviz) 39 #:use-module (gnu packages graphviz)
@@ -37,7 +42,10 @@
37 #:use-module (gnu packages perl) 42 #:use-module (gnu packages perl)
38 #:use-module (gnu packages pkg-config) 43 #:use-module (gnu packages pkg-config)
39 #:use-module (gnu packages python) 44 #:use-module (gnu packages python)
45 #:use-module (gnu packages serialization)
46 #:use-module (gnu packages xiph)
40 #:use-module (gnu packages xml) 47 #:use-module (gnu packages xml)
48 #:use-module (gnu packages xorg)
41 #:use-module (gnu packages vtk)) 49 #:use-module (gnu packages vtk))
42 50
43;; We use the latest snapshot of this package because the latest release is 51;; We use the latest snapshot of this package because the latest release is
@@ -128,3 +136,60 @@ is built around a plug-in structure that makes it easy to add functionality
128without compromising the original code base and it makes use of a wide variety 136without compromising the original code base and it makes use of a wide variety
129of external libraries that provide additional functionality.") 137of external libraries that provide additional functionality.")
130 (license license:gpl3+))) 138 (license license:gpl3+)))
139
140(define-public vtk
141 (package
142 (name "vtk")
143 (version "7.1.0")
144 (source (origin
145 (method url-fetch)
146 (uri (string-append "http://www.vtk.org/files/release/"
147 (version-major+minor version)
148 "/VTK-" version ".tar.gz"))
149 (sha256
150 (base32
151 "0yj96z58haan77gzilnqp7xpf8hg5jk11a3jx55p2ksd400s0gjz"))))
152 (build-system cmake-build-system)
153 (arguments
154 '(#:build-type "Release" ;Build without '-g' to save space.
155 ;; -DVTK_USE_SYSTEM_NETCDF:BOOL=TRUE requires netcdf_cxx
156 #:configure-flags '("-DVTK_USE_SYSTEM_EXPAT:BOOL=TRUE"
157 "-DVTK_USE_SYSTEM_FREETYPE:BOOL=TRUE"
158 "-DVTK_USE_SYSTEM_HDF5:BOOL=TRUE"
159 "-DVTK_USE_SYSTEM_JPEG:BOOL=TRUE"
160 "-DVTK_USE_SYSTEM_JSONCPP:BOOL=TRUE"
161 "-DVTK_USE_SYSTEM_LIBXML2:BOOL=TRUE"
162 "-DVTK_USE_SYSTEM_OGGTHEORA:BOOL=TRUE"
163 "-DVTK_USE_SYSTEM_PNG:BOOL=TRUE"
164 "-DVTK_USE_SYSTEM_TIFF:BOOL=TRUE"
165 "-DVTK_USE_SYSTEM_ZLIB:BOOL=TRUE")
166 #:tests? #f)) ;XXX: no "test" target
167 (inputs
168 `(("libXt" ,libxt)
169 ("xproto" ,xproto)
170 ("libX11" ,libx11)
171 ("libxml2" ,libxml2)
172 ("mesa" ,mesa)
173 ("glu" ,glu)
174 ("expat" ,expat)
175 ("freetype" ,freetype)
176 ("hdf5" ,hdf5)
177 ("jpeg" ,libjpeg)
178 ("jsoncpp" ,jsoncpp)
179 ("libogg" ,libogg)
180 ("libtheora" ,libtheora)
181 ("png" ,libpng)
182 ("tiff" ,libtiff)
183 ("zlib" ,zlib)))
184 (home-page "http://www.vtk.org/")
185 (synopsis "Libraries for 3D computer graphics")
186 (description
187 "The Visualization Toolkit (VTK) is a C++ library for 3D computer graphics,
188image processing and visualization. It supports a wide variety of
189visualization algorithms including: scalar, vector, tensor, texture, and
190volumetric methods; and advanced modeling techniques such as: implicit
191modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay
192triangulation. VTK has an extensive information visualization framework, has
193a suite of 3D interaction widgets, supports parallel processing, and
194integrates with various databases on GUI toolkits such as Qt and Tk.")
195 (license license:bsd-3)))