gnu: python-jsonschema: Update to 3.2.0.
[jackhill/guix/guix.git] / gnu / packages / graphics.scm
CommitLineData
f327b36e 1;;; GNU Guix --- Functional package management for GNU
79f912c7 2;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org>
e9f1fa39 3;;; Copyright © 2015 Tomáš Čech <sleep_walker@gnu.org>
04d52b1a 4;;; Copyright © 2016, 2019 Leo Famulari <leo@famulari.name>
df8ab774 5;;; Copyright © 2016, 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
1cd968e8 6;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
42bf3429 7;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
6bf11392 8;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
f63d6188 9;;; Copyright © 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
8008605d 10;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
17153d18 11;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
fc4f13bd 12;;; Copyright © 2018 Alex Kost <alezost@gmail.com>
340ee00b 13;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
8b672b2c 14;;; Copyright © 2019 Mark H Weaver <mhw@netris.org>
13f30b54 15;;; Copyright © 2019 Carlo Zancanaro <carlo@zancanaro.id.au>
c3c0eda6 16;;; Copyright © 2019 Steve Sprang <scs@stevesprang.com>
f36617cb 17;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
24f7bac0 18;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
8ae17933 19;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
1e8826bd 20;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
ce226e9d 21;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
f327b36e
LC
22;;;
23;;; This file is part of GNU Guix.
24;;;
25;;; GNU Guix is free software; you can redistribute it and/or modify it
26;;; under the terms of the GNU General Public License as published by
27;;; the Free Software Foundation; either version 3 of the License, or (at
28;;; your option) any later version.
29;;;
30;;; GNU Guix is distributed in the hope that it will be useful, but
31;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33;;; GNU General Public License for more details.
34;;;
35;;; You should have received a copy of the GNU General Public License
36;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37
38(define-module (gnu packages graphics)
cab6a253 39 #:use-module (gnu packages)
0e2f2aeb
RW
40 #:use-module (gnu packages algebra)
41 #:use-module (gnu packages audio)
87bafa07
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages bash)
96d15e48 44 #:use-module (gnu packages bison)
87bafa07 45 #:use-module (gnu packages boost)
dd75a9a2 46 #:use-module (gnu packages check)
595d1bd5 47 #:use-module (gnu packages compression)
99828fa7 48 #:use-module (gnu packages documentation)
96d15e48 49 #:use-module (gnu packages flex)
dd75a9a2 50 #:use-module (gnu packages fonts)
87bafa07 51 #:use-module (gnu packages fontutils)
595d1bd5 52 #:use-module (gnu packages ghostscript)
a29bfc28 53 #:use-module (gnu packages gl)
96d15e48 54 #:use-module (gnu packages glib)
595d1bd5 55 #:use-module (gnu packages gnome)
96d15e48
RW
56 #:use-module (gnu packages graphviz)
57 #:use-module (gnu packages gtk)
dddbc90c 58 #:use-module (gnu packages haskell-xyz)
0e2f2aeb 59 #:use-module (gnu packages image)
595d1bd5 60 #:use-module (gnu packages imagemagick)
0e2f2aeb 61 #:use-module (gnu packages jemalloc)
595d1bd5
TGR
62 #:use-module (gnu packages multiprecision)
63 #:use-module (gnu packages pdf)
64 #:use-module (gnu packages perl)
0e2f2aeb 65 #:use-module (gnu packages photo)
595d1bd5 66 #:use-module (gnu packages pkg-config)
6bf11392 67 #:use-module (gnu packages pth)
595d1bd5 68 #:use-module (gnu packages pulseaudio) ; libsndfile, libsamplerate
0e2f2aeb 69 #:use-module (gnu packages python)
44d10b1f 70 #:use-module (gnu packages python-xyz)
87bafa07 71 #:use-module (gnu packages qt)
96d15e48 72 #:use-module (gnu packages readline)
87bafa07 73 #:use-module (gnu packages sdl)
dd75a9a2 74 #:use-module (gnu packages swig)
7297ebb2 75 #:use-module (gnu packages tbb)
0e2f2aeb 76 #:use-module (gnu packages video)
96d15e48 77 #:use-module (gnu packages xml)
595d1bd5
TGR
78 #:use-module (gnu packages xorg)
79 #:use-module (guix build-system cmake)
80 #:use-module (guix build-system gnu)
81 #:use-module (guix build-system python)
82 #:use-module (guix download)
83 #:use-module (guix git-download)
24268ec4 84 #:use-module (guix hg-download)
595d1bd5
TGR
85 #:use-module ((guix licenses) #:prefix license:)
86 #:use-module (guix packages)
87 #:use-module (guix utils))
f327b36e 88
0e2f2aeb
RW
89(define-public blender
90 (package
91 (name "blender")
ec4c170f 92 (version "2.82a")
0e2f2aeb 93 (source (origin
274ba54e
LF
94 (method url-fetch)
95 (uri (string-append "https://download.blender.org/source/"
7297ebb2 96 "blender-" version ".tar.xz"))
0e2f2aeb
RW
97 (sha256
98 (base32
ec4c170f 99 "18zbdgas6qf2kmvvlimxgnq7y9kj7hdxcgixrs6fj50x40q01q2d"))))
0e2f2aeb
RW
100 (build-system cmake-build-system)
101 (arguments
bb9cd6de
LF
102 (let ((python-version (version-major+minor (package-version python))))
103 `(;; Test files are very large and not included in the release tarball.
104 #:tests? #f
105 #:configure-flags
106 (list "-DWITH_CODEC_FFMPEG=ON"
107 "-DWITH_CODEC_SNDFILE=ON"
108 "-DWITH_CYCLES=ON"
109 "-DWITH_DOC_MANPAGE=ON"
110 "-DWITH_FFTW3=ON"
bb9cd6de
LF
111 "-DWITH_IMAGE_OPENJPEG=ON"
112 "-DWITH_INPUT_NDOF=ON"
113 "-DWITH_INSTALL_PORTABLE=OFF"
114 "-DWITH_JACK=ON"
115 "-DWITH_MOD_OCEANSIM=ON"
588a0a33 116 "-DWITH_OPENSUBDIV=ON"
bb9cd6de 117 "-DWITH_PYTHON_INSTALL=OFF"
bb9cd6de
LF
118 (string-append "-DPYTHON_LIBRARY=python" ,python-version "m")
119 (string-append "-DPYTHON_LIBPATH=" (assoc-ref %build-inputs "python")
120 "/lib")
121 (string-append "-DPYTHON_INCLUDE_DIR=" (assoc-ref %build-inputs "python")
122 "/include/python" ,python-version "m")
fc51c28a
LF
123 (string-append "-DPYTHON_VERSION=" ,python-version)
124 (string-append "-DPYTHON_NUMPY_PATH="
125 (assoc-ref %build-inputs "python-numpy")
126 "/lib/python" ,python-version "/site-packages/"))
bb9cd6de
LF
127 #:phases
128 (modify-phases %standard-phases
fc51c28a
LF
129 ;; XXX This file doesn't exist in the Git sources but will probably
130 ;; exist in the eventual 2.80 source tarball.
8db20f2d
TGR
131 (add-after 'unpack 'fix-broken-import
132 (lambda _
133 (substitute* "release/scripts/addons/io_scene_fbx/json2fbx.py"
134 (("import encode_bin") "from . import encode_bin"))
135 #t))
bb9cd6de
LF
136 (add-after 'set-paths 'add-ilmbase-include-path
137 (lambda* (#:key inputs #:allow-other-keys)
138 ;; OpenEXR propagates ilmbase, but its include files do not appear
139 ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
140 ;; the CPATH to satisfy the dependency on "half.h".
141 (setenv "CPATH"
142 (string-append (assoc-ref inputs "ilmbase")
143 "/include/OpenEXR"
144 ":" (or (getenv "CPATH") "")))
145 #t))))))
0e2f2aeb
RW
146 (inputs
147 `(("boost" ,boost)
148 ("jemalloc" ,jemalloc)
149 ("libx11" ,libx11)
7297ebb2
LF
150 ("libxi" ,libxi)
151 ("libxrender" ,libxrender)
0e2f2aeb
RW
152 ("openimageio" ,openimageio)
153 ("openexr" ,openexr)
588a0a33 154 ("opensubdiv" ,opensubdiv)
0e2f2aeb 155 ("ilmbase" ,ilmbase)
fc51c28a 156 ("openjpeg" ,openjpeg)
0e2f2aeb
RW
157 ("libjpeg" ,libjpeg)
158 ("libpng" ,libpng)
159 ("libtiff" ,libtiff)
5deb0c67 160 ("ffmpeg" ,ffmpeg)
0e2f2aeb
RW
161 ("fftw" ,fftw)
162 ("jack" ,jack-1)
163 ("libsndfile" ,libsndfile)
164 ("freetype" ,freetype)
165 ("glew" ,glew)
166 ("openal" ,openal)
bb9cd6de 167 ("python" ,python)
fc51c28a 168 ("python-numpy" ,python-numpy)
7297ebb2 169 ("tbb" ,tbb)
0e2f2aeb 170 ("zlib" ,zlib)))
9a6f5bbc 171 (home-page "https://blender.org/")
0e2f2aeb
RW
172 (synopsis "3D graphics creation suite")
173 (description
174 "Blender is a 3D graphics creation suite. It supports the entirety of
175the 3D pipeline—modeling, rigging, animation, simulation, rendering,
176compositing and motion tracking, even video editing and game creation. The
6af4cb30 177application can be customized via its API for Python scripting.")
dd9c137b 178 (license license:gpl2+)))
0e2f2aeb 179
5a82f933
RW
180(define-public assimp
181 (package
182 (name "assimp")
2d4514e9 183 (version "4.1.0")
5a82f933 184 (source (origin
2d4514e9
EF
185 (method git-fetch)
186 (uri (git-reference
187 (url "https://github.com/assimp/assimp.git")
188 (commit (string-append "v" version))))
189 (file-name (git-file-name name version))
5a82f933
RW
190 (sha256
191 (base32
2d4514e9 192 "1rhyqfhzifdj7yibyanph3rh13ykw3i98dnn8mz65j780472hw28"))))
5a82f933
RW
193 (build-system cmake-build-system)
194 (inputs
195 `(("zlib" ,zlib)))
2d4514e9 196 (home-page "http://www.assimp.org/")
5a82f933
RW
197 (synopsis "Asset import library")
198 (description
199 "The Open Asset Import Library loads more than 40 3D file formats into
200one unified data structure. Additionally, assimp features various mesh post
201processing tools: normals and tangent space generation, triangulation, vertex
202cache locality optimization, removal of degenerate primitives and duplicate
203vertices, sorting by primitive type, merging of redundant materials and many
204more.")
205 (license license:bsd-3)))
206
f327b36e
LC
207(define-public cgal
208 (package
209 (name "cgal")
632c6f2e 210 (version "4.14.2")
f327b36e
LC
211 (source (origin
212 (method url-fetch)
213 (uri (string-append
0a7fc756
EF
214 "https://github.com/CGAL/cgal/releases/download/releases/"
215 "CGAL-" version "/CGAL-" version ".tar.xz"))
f327b36e
LC
216 (sha256
217 (base32
632c6f2e 218 "08lrp3hfwdypggz4138bnkh6bjxn441zg2y9xnq5mrjfc5ini6w1"))))
f327b36e
LC
219 (build-system cmake-build-system)
220 (arguments
632c6f2e 221 '(#:tests? #f)) ; no test target
f327b36e
LC
222 (inputs
223 `(("mpfr" ,mpfr)
224 ("gmp" ,gmp)
225 ("boost" ,boost)))
9e25afcb 226 (home-page "https://www.cgal.org/")
f327b36e
LC
227 (synopsis "Computational geometry algorithms library")
228 (description
229 "CGAL provides easy access to efficient and reliable geometric algorithms
230in the form of a C++ library. CGAL is used in various areas needing geometric
231computation, such as: computer graphics, scientific visualization, computer
232aided design and modeling, geographic information systems, molecular biology,
233medical imaging, robotics and motion planning, mesh generation, numerical
234methods, etc. It provides data structures and algorithms such as
235triangulations, Voronoi diagrams, polygons, polyhedra, mesh generation, and
236many more.")
237
238 ;; The 'LICENSE' file explains that a subset is available under more
239 ;; permissive licenses.
240 (license license:gpl3+)))
cab6a253
LC
241
242(define-public ilmbase
243 (package
244 (name "ilmbase")
40bea7f9 245 (version "2.4.1")
cab6a253 246 (source (origin
942c7889
MB
247 (method git-fetch)
248 (uri (git-reference
249 (url "https://github.com/openexr/openexr")
250 (commit (string-append "v" version))))
251 (file-name (git-file-name "ilmbase" version))
cab6a253
LC
252 (sha256
253 (base32
40bea7f9 254 "020gyl8zv83ag6gbcchmqiyx9rh2jca7j8n52zx1gk4rck7kwc01"))
942c7889
MB
255 (patches (search-patches "ilmbase-fix-tests.patch"
256 "ilmbase-openexr-pkg-config.patch"))))
257 (build-system cmake-build-system)
258 (arguments
259 `(#:phases (modify-phases %standard-phases
260 (add-after 'unpack 'change-directory
261 (lambda _
262 (chdir "IlmBase")
263 #t)))))
25c4a04f 264 (home-page "https://www.openexr.com/")
cab6a253
LC
265 (synopsis "Utility C++ libraries for threads, maths, and exceptions")
266 (description
267 "IlmBase provides several utility libraries for C++. Half is a class
268that encapsulates ILM's 16-bit floating-point format. IlmThread is a thread
269abstraction. Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices,
270quaternions and other useful 2D and 3D math functions. Iex is an
271exception-handling library.")
272 (license license:bsd-3)))
273
dd75a9a2
MR
274(define-public ogre
275 (package
276 (name "ogre")
f63d6188 277 (version "1.10.11")
dd75a9a2
MR
278 (source
279 (origin
1aa662b3
EF
280 (method git-fetch)
281 (uri (git-reference
282 (url "https://github.com/OGRECave/ogre.git")
283 (commit (string-append "v" version))))
284 (file-name (git-file-name name version))
dd75a9a2
MR
285 (sha256
286 (base32
1aa662b3 287 "072rzw9mxymbiypgkrbkk9h10rgly6gczik4dlmssk6xkpqckaqr"))))
dd75a9a2
MR
288 (build-system cmake-build-system)
289 (arguments
290 '(#:phases
291 (modify-phases %standard-phases
292 (add-before 'configure 'pre-configure
dd75a9a2 293 (lambda* (#:key inputs #:allow-other-keys)
d5640c58
EF
294 (substitute* "Tests/CMakeLists.txt"
295 (("URL(.*)$")
296 (string-append "URL " (assoc-ref inputs "googletest-source"))))
dd75a9a2
MR
297 #t)))
298 #:configure-flags
299 (list "-DOGRE_BUILD_TESTS=TRUE"
300 (string-append "-DCMAKE_INSTALL_RPATH="
301 (assoc-ref %outputs "out") "/lib:"
302 (assoc-ref %outputs "out") "/lib/OGRE:"
303 (assoc-ref %build-inputs "googletest") "/lib")
304 "-DOGRE_INSTALL_DOCS=TRUE"
305 "-DOGRE_INSTALL_SAMPLES=TRUE"
306 "-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE")))
307 (native-inputs
308 `(("boost" ,boost)
309 ("doxygen" ,doxygen)
310 ("googletest-source" ,(package-source googletest))
311 ("pkg-config" ,pkg-config)))
312 (inputs
313 `(("font-dejavu" ,font-dejavu)
314 ("freeimage" ,freeimage)
315 ("freetype" ,freetype)
316 ("glu" ,glu)
317 ("googletest" ,googletest)
318 ("sdl2" ,sdl2)
319 ("libxaw" ,libxaw)
320 ("libxrandr" ,libxrandr)
321 ("tinyxml" ,tinyxml)
322 ("zziplib" ,zziplib)))
323 (synopsis "Scene-oriented, flexible 3D engine written in C++")
324 (description
325 "OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented,
326flexible 3D engine written in C++ designed to make it easier and more intuitive
327for developers to produce applications utilising hardware-accelerated 3D
328graphics.")
05fe0f56 329 (home-page "https://www.ogre3d.org/")
dd75a9a2
MR
330 (license license:expat)))
331
cab6a253
LC
332(define-public openexr
333 (package
334 (name "openexr")
942c7889 335 (version (package-version ilmbase))
cab6a253 336 (source (origin
942c7889
MB
337 (inherit (package-source ilmbase))
338 (file-name (git-file-name "openexr" version))
cab6a253
LC
339 (modules '((guix build utils)))
340 (snippet
c2c36f5f 341 '(begin
942c7889 342 (substitute* (find-files "OpenEXR" "tmpDir\\.h")
c2c36f5f
LC
343 (("\"/var/tmp/\"")
344 "\"/tmp/\""))
fcde1d27 345 #t))))
942c7889 346 (build-system cmake-build-system)
bce6f7ce 347 (arguments
ae5c63d7 348 `(#:phases
bce6f7ce 349 (modify-phases %standard-phases
942c7889
MB
350 (add-after 'unpack 'change-directory
351 (lambda _
352 (chdir "OpenEXR")
353 #t))
ae5c63d7 354 (add-before 'check 'increase-test-timeout
bce6f7ce 355 (lambda _
ae5c63d7
MB
356 ;; On armhf-linux, we need to override the CTest default
357 ;; timeout of 1500 seconds for the OpenEXR.IlmImf test.
358 (setenv "CTEST_TEST_TIMEOUT" "2000")
359 #t))
360 ,@(if (not (target-64bit?))
361 `((add-after 'change-directory 'disable-broken-test
362 ;; This test fails on i686. Upstream developers suggest that
363 ;; this test is broken on i686 and can be safely disabled:
364 ;; https://github.com/openexr/openexr/issues/67#issuecomment-21169748
365 (lambda _
366 (substitute* "IlmImfTest/main.cpp"
367 ((".*testOptimizedInterleavePatterns.*") "")
368 ;; This test is broken in 2.4.0 and will be fixed in a later
369 ;; release: <https://github.com/openexr/openexr/issues/571>.
370 ((".*testLargeDataWindowOffsets.*") ""))
371 #t)))
372 '()))))
cab6a253
LC
373 (native-inputs
374 `(("pkg-config" ,pkg-config)))
375 (propagated-inputs
376 `(("ilmbase" ,ilmbase) ;used in public headers
377 ("zlib" ,zlib))) ;OpenEXR.pc reads "-lz"
25c4a04f 378 (home-page "https://www.openexr.com/")
9f2840cb 379 (synopsis "High-dynamic range file format library")
cab6a253
LC
380 (description
381 "OpenEXR is a high dynamic-range (HDR) image file format developed for
9f2840cb
LC
382use in computer imaging applications. The IlmImf C++ libraries support
383storage of the \"EXR\" file format for storing 16-bit floating-point images.")
cab6a253 384 (license license:bsd-3)))
9d620590 385
71299c12
RW
386(define-public openimageio
387 (package
388 (name "openimageio")
04d52b1a 389 (version "1.8.17")
71299c12 390 (source (origin
1cd968e8
EF
391 (method git-fetch)
392 (uri (git-reference
393 (url "https://github.com/OpenImageIO/oiio.git")
394 (commit (string-append "Release-" version))))
395 (file-name (git-file-name name version))
71299c12
RW
396 (sha256
397 (base32
04d52b1a 398 "0zq34szprgkrrayg5sl3whrsx2l6lr8nw4hdrnwv2qhn70jbi2w2"))))
71299c12
RW
399 (build-system cmake-build-system)
400 ;; FIXME: To run all tests successfully, test image sets from multiple
401 ;; third party sources have to be present. For details see
402 ;; https://github.com/OpenImageIO/oiio/blob/master/INSTALL
4b42b106 403 (arguments
51d4c79d 404 `(#:tests? #f))
71299c12
RW
405 (native-inputs
406 `(("pkg-config" ,pkg-config)))
407 (inputs
408 `(("boost" ,boost)
409 ("libpng" ,libpng)
09982785 410 ("libjpeg" ,libjpeg)
71299c12
RW
411 ("libtiff" ,libtiff)
412 ("giflib" ,giflib)
413 ("openexr" ,openexr)
414 ("ilmbase" ,ilmbase)
415 ("python" ,python-2)
416 ("zlib" ,zlib)))
417 (synopsis "C++ library for reading and writing images")
418 (description
419 "OpenImageIO is a library for reading and writing images, and a bunch of
420related classes, utilities, and applications. There is a particular emphasis
421on formats and functionality used in professional, large-scale animation and
422visual effects work for film.")
831d64cc 423 (home-page "https://www.openimageio.org")
71299c12
RW
424 (license license:bsd-3)))
425
04d52b1a
LF
426;; This older version of OpenImageIO is required for Blender 2.79.
427(define-public openimageio-1.7
428 (package
429 (inherit openimageio)
430 (name "openimageio")
431 (version "1.7.19")
432 (source (origin
433 (method git-fetch)
434 (uri (git-reference
435 (url "https://github.com/OpenImageIO/oiio.git")
436 (commit (string-append "Release-" version))))
437 (file-name (git-file-name name version))
438 (sha256
439 (base32
440 "0yxxy43l3lllw7maqg42dlkgqms2d4772sxzxk7kmxg4lnhsvndc"))))))
441
6bf11392
MR
442(define-public openscenegraph
443 (package
444 (name "openscenegraph")
1788bb90 445 (version "3.6.5")
6bf11392
MR
446 (source
447 (origin
fc4f13bd
AK
448 (method git-fetch)
449 (uri (git-reference
450 (url "https://github.com/openscenegraph/OpenSceneGraph")
451 (commit (string-append "OpenSceneGraph-" version))))
6bf11392 452 (sha256
1788bb90 453 (base32 "00i14h82qg3xzcyd8p02wrarnmby3aiwmz0z43l50byc9f8i05n1"))
3752b683 454 (file-name (git-file-name name version))))
fc4f13bd
AK
455 (properties
456 `((upstream-name . "OpenSceneGraph")))
6bf11392
MR
457 (build-system cmake-build-system)
458 (arguments
1788bb90 459 `(#:tests? #f ; no test target available
3def739d
TGR
460 ;; Without this flag, 'rd' will be added to the name of the
461 ;; library binaries and break linking with other programs.
462 #:build-type "Release"
6bf11392
MR
463 #:configure-flags
464 (list (string-append "-DCMAKE_INSTALL_RPATH="
465 (assoc-ref %outputs "out") "/lib:"
3def739d 466 (assoc-ref %outputs "out") "/lib64"))))
6bf11392 467 (native-inputs
fc4f13bd
AK
468 `(("pkg-config" ,pkg-config)
469 ("unzip" ,unzip)))
6bf11392 470 (inputs
c695fb76 471 `(("giflib" ,giflib)
1788bb90 472 ("libjpeg" ,libjpeg) ; required by the JPEG texture plugin
c695fb76
TGR
473 ("jasper" ,jasper)
474 ("librsvg" ,librsvg)
fc4f13bd 475 ("libxrandr" ,libxrandr)
c695fb76
TGR
476 ("ffmpeg" ,ffmpeg)
477 ("mesa" ,mesa)))
99ed3a1f 478 (synopsis "High-performance real-time graphics toolkit")
6bf11392 479 (description
99ed3a1f 480 "The OpenSceneGraph is a high-performance 3D graphics toolkit
6bf11392 481used by application developers in fields such as visual simulation, games,
d7c5aac1 482virtual reality, scientific visualization and modeling.")
6bf11392
MR
483 (home-page "http://www.openscenegraph.org")
484 ;; The 'LICENSE' file explains that the source is licensed under
485 ;; LGPL 2.1, but with 4 exceptions. This version is called OSGPL.
486 (license license:lgpl2.1)))
487
df8ab774
RW
488;; We need this for simgear
489(define-public openscenegraph-3.4
490 (package (inherit openscenegraph)
491 (name "openscenegraph")
492 (version "3.4.1")
493 (source
494 (origin
495 (method git-fetch)
496 (uri (git-reference
497 (url "https://github.com/openscenegraph/OpenSceneGraph")
498 (commit (string-append "OpenSceneGraph-" version))))
499 (file-name (git-file-name name version))
500 (sha256
501 (base32
502 "1fbzg1ihjpxk6smlq80p3h3ggllbr16ihd2fxpfwzam8yr8yxip9"))))
503 (arguments
504 (substitute-keyword-arguments (package-arguments openscenegraph)
505 ((#:configure-flags flags)
506 `(cons
507 ;; The jpeg plugin requires conversion between integers and booleans
508 "-DCMAKE_CXX_FLAGS=-fpermissive"
509 ,flags))))
510 (inputs
511 `(("libjpeg" ,libjpeg)
512 ,@(package-inputs openscenegraph)))))
513
84a0c6ff
MB
514
515(define-public openmw-openscenegraph
516 ;; OpenMW prefers its own fork of openscenegraph:
517 ;; https://wiki.openmw.org/index.php?title=Development_Environment_Setup#OpenSceneGraph.
518 (let ((commit "36a962845a2c87a6671fd822157e0729d164e940"))
519 (hidden-package
520 (package
521 (inherit openscenegraph)
522 (version (git-version "3.6" "1" commit))
523 (source
524 (origin
525 (method git-fetch)
526 (uri (git-reference
527 (url "https://github.com/OpenMW/osg/")
528 (commit commit)))
529 (file-name (git-file-name (package-name openscenegraph) version))
530 (sha256
531 (base32
532 "05yhgq3qm5q277y32n5sf36vx5nv5qd3zlhz4csgd3a6190jrnia"))))
533 (arguments
534 (substitute-keyword-arguments (package-arguments openscenegraph)
535 ((#:configure-flags flags)
536 ;; As per the above wiki link, the following plugins are enough:
537 `(append
538 '("-DBUILD_OSG_PLUGINS_BY_DEFAULT=0"
539 "-DBUILD_OSG_PLUGIN_OSG=1"
540 "-DBUILD_OSG_PLUGIN_DDS=1"
541 "-DBUILD_OSG_PLUGIN_TGA=1"
542 "-DBUILD_OSG_PLUGIN_BMP=1"
543 "-DBUILD_OSG_PLUGIN_JPEG=1"
544 "-DBUILD_OSG_PLUGIN_PNG=1"
545 "-DBUILD_OSG_DEPRECATED_SERIALIZERS=0"
546 ;; The jpeg plugin requires conversion between integers and booleans
547 "-DCMAKE_CXX_FLAGS=-fpermissive")
548 ,flags))))))))
549
340ee00b
KK
550(define-public povray
551 (package
552 (name "povray")
553 (version "3.7.0.8")
554 (source (origin
555 (method git-fetch)
556 (uri (git-reference
557 (url "https://github.com/POV-Ray/povray")
558 (commit (string-append "v" version))))
559 (file-name (git-file-name name version))
560 (sha256
561 (base32
562 "1q114n4m3r7qy3yn954fq7p46rg7ypdax5fazxr9yj1jklf1lh6z"))
563 (modules '((guix build utils)))
564 (snippet
565 '(begin
566 ;; Delete bundled libraries.
567 (delete-file-recursively "libraries")
568 #t))))
569 (build-system gnu-build-system)
570 (native-inputs
571 `(("autoconf" ,autoconf)
572 ("automake" ,automake)
573 ("pkg-config" ,pkg-config)))
574 (inputs
575 `(("boost" ,boost)
576 ("libjpeg" ,libjpeg)
577 ("libpng" ,libpng)
578 ("libtiff" ,libtiff)
579 ("openexr" ,openexr)
580 ("sdl" ,sdl)
581 ("zlib" ,zlib)))
582 (arguments
583 '(#:configure-flags
584 (list "COMPILED_BY=Guix"
585 (string-append "--with-boost-libdir="
586 (assoc-ref %build-inputs "boost") "/lib")
340ee00b
KK
587 "--disable-optimiz-arch")
588 #:phases
589 (modify-phases %standard-phases
590 (add-after 'unpack 'run-prebuild
591 (lambda _
592 (setenv "HOME" (getcwd))
593 (with-directory-excursion "unix"
594 (substitute* "prebuild.sh"
595 (("/bin/sh") (which "sh")))
596 (invoke "sh" "prebuild.sh"))
597 #t))
598 ;; The bootstrap script is run by the prebuild script in the
599 ;; "run-prebuild" phase.
600 (delete 'bootstrap))))
601 (synopsis "Tool for creating three-dimensional graphics")
602 (description
603 "@code{POV-Ray} is short for the Persistence of Vision Raytracer, a tool
604for producing high-quality computer graphics. @code{POV-Ray} creates
605three-dimensional, photo-realistic images using a rendering technique called
606ray-tracing. It reads in a text file containing information describing the
607objects and lighting in a scene and generates an image of that scene from the
608view point of a camera also described in the text file. Ray-tracing is not a
609fast process by any means, but it produces very high quality images with
610realistic reflections, shading, perspective and other effects.")
611 (home-page "http://www.povray.org/")
612 (license license:agpl3+)))
613
96d15e48
RW
614(define-public rapicorn
615 (package
616 (name "rapicorn")
617 (version "16.0.0")
618 (source (origin
619 (method url-fetch)
620 (uri (string-append "https://testbit.eu/pub/dists/rapicorn/"
621 "rapicorn-" version ".tar.xz"))
622 (sha256
623 (base32
42bf3429
AE
624 "1y51yjrpsihas1jy905m9p3r8iiyhq6bwi2690c564i5dnix1f9d"))
625 (patches (search-patches "rapicorn-isnan.patch"))))
96d15e48
RW
626 (build-system gnu-build-system)
627 (arguments
002528bc 628 `(#:phases
96d15e48 629 (modify-phases %standard-phases
002528bc
RW
630 (add-after 'unpack 'fix-tests
631 (lambda _
632 ;; Our grep does not support perl regular expressions.
633 (substitute* "taptool.sh"
634 (("grep -P") "grep -E"))
635 ;; Disable path tests because we cannot access /bin or /sbin.
636 (substitute* "rcore/tests/multitest.cc"
637 (("TCMP \\(Path::equals \\(\"/bin\"") "//"))
638 #t))
639 (add-before 'check 'pre-check
640 (lambda _
641 ;; The test suite requires a running X server (with DISPLAY
642 ;; number 99 or higher).
643 (system "Xvfb :99 &")
644 (setenv "DISPLAY" ":99")
645 #t))
646 (add-after 'unpack 'replace-fhs-paths
96d15e48
RW
647 (lambda _
648 (substitute* (cons "Makefile.decl"
649 (find-files "." "^Makefile\\.in$"))
002528bc
RW
650 (("/bin/ls") (which "ls"))
651 (("/usr/bin/env") (which "env")))
96d15e48
RW
652 #t)))))
653 ;; These libraries are listed in the "Required" section of the pkg-config
654 ;; file.
655 (propagated-inputs
656 `(("librsvg" ,librsvg)
657 ("cairo" ,cairo)
658 ("pango" ,pango)
002528bc
RW
659 ("libxml2" ,libxml2)
660 ("python2-enum34" ,python2-enum34)))
96d15e48
RW
661 (inputs
662 `(("gdk-pixbuf" ,gdk-pixbuf)
663 ("libpng" ,libpng-1.2)
664 ("readline" ,readline)
665 ("libcroco" ,libcroco)
666 ("python" ,python-2)
667 ("cython" ,python2-cython)))
668 (native-inputs
669 `(("pandoc" ,ghc-pandoc)
670 ("bison" ,bison)
671 ("flex" ,flex)
672 ("doxygen" ,doxygen)
673 ("graphviz" ,graphviz)
674 ("intltool" ,intltool)
002528bc 675 ("pkg-config" ,pkg-config)
ff337525 676 ("xvfb" ,xorg-server-for-tests)))
36c5cf75 677 (home-page "https://rapicorn.testbit.org/")
96d15e48
RW
678 (synopsis "Toolkit for rapid development of user interfaces")
679 (description
680 "Rapicorn is a toolkit for rapid development of user interfaces in C++
681and Python. The user interface is designed in a declarative markup language
682and is connected to the programming logic using data bindings and commands.")
683 (license license:mpl2.0)))
684
9d620590
LC
685(define-public ctl
686 (package
687 (name "ctl")
688 (version "1.5.2")
689 (source (origin
690 (method url-fetch)
691 (uri (string-append "https://github.com/ampas/CTL/archive/ctl-"
692 version ".tar.gz"))
693 (sha256
694 (base32
695 "1gg04pyvw0m398akn0s1l07g5b1haqv5na1wpi5dii1jjd1w3ynp"))))
696 (build-system cmake-build-system)
697 (arguments '(#:tests? #f)) ;no 'test' target
698
699 ;; Headers include OpenEXR and IlmBase headers.
700 (propagated-inputs `(("openexr" ,openexr)))
701
702 (home-page "http://ampasctl.sourceforge.net")
703 (synopsis "Color Transformation Language")
704 (description
705 "The Color Transformation Language, or CTL, is a small programming
706language that was designed to serve as a building block for digital color
707management systems. CTL allows users to describe color transforms in a
708concise and unambiguous way by expressing them as programs. In order to apply
709a given transform to an image, the color management system instructs a CTL
710interpreter to load and run the CTL program that describes the transform. The
711original and the transformed image constitute the CTL program's input and
712output.")
713
714 ;; The web site says it's under a BSD-3 license, but the 'LICENSE' file
715 ;; and headers use different wording.
166191b3 716 (license (license:non-copyleft "file://LICENSE"))))
a29bfc28
LC
717
718(define-public brdf-explorer
9b91fb32
RW
719 ;; There are no release tarballs, and not even tags in the repo,
720 ;; so use the latest revision.
721 (let ((commit "5b2cd46f38a06e47207fa7229b72d37beb945019")
722 (revision "1"))
723 (package
724 (name "brdf-explorer")
725 (version (string-append "1.0.0-" revision "." (string-take commit 9)))
726 (source (origin
727 (method git-fetch)
728 (uri (git-reference
729 (url "https://github.com/wdas/brdf.git")
730 (commit commit)))
731 (sha256
732 (base32
733 "06vzbiajzbi2xl8jlff5d45bc9wd68i3jdndfab1f3jgfrd8bsgx"))
734 (file-name (string-append name "-" version "-checkout"))))
735 (build-system gnu-build-system)
736 (arguments
737 `(#:phases (modify-phases %standard-phases
738 (replace 'configure
739 (lambda* (#:key outputs #:allow-other-keys)
740 (let ((out (assoc-ref outputs "out")))
cba8ba8b
RW
741 (invoke "qmake"
742 (string-append "prefix=" out)))))
9b91fb32
RW
743 (add-after 'install 'wrap-program
744 (lambda* (#:key outputs #:allow-other-keys)
745 (let* ((out (assoc-ref outputs "out"))
746 (bin (string-append out "/bin"))
747 (data (string-append
748 out "/share/brdf")))
749 (with-directory-excursion bin
750 (rename-file "brdf" ".brdf-real")
751 (call-with-output-file "brdf"
752 (lambda (port)
753 (format port "#!/bin/sh
a29bfc28
LC
754# Run the thing from its home, otherwise it just bails out.
755cd \"~a\"
756exec -a \"$0\" ~a/.brdf-real~%"
9b91fb32 757 data bin)))
cba8ba8b
RW
758 (chmod "brdf" #o555)))
759 #t)))))
9b91fb32
RW
760 (native-inputs
761 `(("qttools" ,qttools))) ;for 'qmake'
762 (inputs
763 `(("qtbase" ,qtbase)
764 ("mesa" ,mesa)
765 ("glew" ,glew)
766 ("freeglut" ,freeglut)
767 ("zlib" ,zlib)))
68e30b8d 768 (home-page "https://www.disneyanimation.com/technology/brdf.html")
9b91fb32
RW
769 (synopsis
770 "Analyze bidirectional reflectance distribution functions (BRDFs)")
771 (description
772 "BRDF Explorer is an application that allows the development and analysis
a29bfc28
LC
773of bidirectional reflectance distribution functions (BRDFs). It can load and
774plot analytic BRDF functions (coded as functions in OpenGL's GLSL shader
775language), measured material data from the MERL database, and anisotropic
776measured material data from MIT CSAIL. Graphs and visualizations update in
777real time as parameters are changed, making it a useful tool for evaluating
778and understanding different BRDFs (and other component functions).")
9b91fb32 779 (license license:ms-pl))))
87bafa07
780
781(define-public agg
782 (package
783 (name "agg")
784 (version "2.5")
785 (source (origin
786 (method url-fetch)
7db0799d
LC
787 (uri (list (string-append
788 "ftp://ftp.fau.de/gentoo/distfiles/agg-"
789 version ".tar.gz")
790 (string-append
791 "ftp://ftp.ula.ve/gentoo/distfiles/agg-"
792 version ".tar.gz")
793
794 ;; Site was discontinued.
795 (string-append "http://www.antigrain.com/agg-"
796 version ".tar.gz")))
87bafa07
797 (sha256
798 (base32 "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb"))
fc1adab1 799 (patches (search-patches "agg-am_c_prototype.patch"))))
87bafa07
800 (build-system gnu-build-system)
801 (arguments
802 '(#:configure-flags
803 (list (string-append "--x-includes=" (assoc-ref %build-inputs "libx11")
804 "/include")
805 (string-append "--x-libraries=" (assoc-ref %build-inputs "libx11")
31f45cf7
EF
806 "/lib")
807 "--disable-examples")
87bafa07 808 #:phases
dc1d3cde 809 (modify-phases %standard-phases
8d18edde 810 (replace 'bootstrap
dc1d3cde
KK
811 (lambda _
812 ;; let's call configure from configure phase and not now
813 (substitute* "autogen.sh" (("./configure") "# ./configure"))
8d18edde 814 (invoke "sh" "autogen.sh"))))))
87bafa07
815 (native-inputs
816 `(("pkg-config" ,pkg-config)
817 ("libtool" ,libtool)
818 ("autoconf" ,autoconf)
8d18edde 819 ("automake" ,automake)))
87bafa07
820 (inputs
821 `(("libx11" ,libx11)
822 ("freetype" ,freetype)
823 ("sdl" ,sdl)))
7db0799d
LC
824
825 ;; Antigrain.com was discontinued.
826 (home-page "http://agg.sourceforge.net/antigrain.com/index.html")
87bafa07
827 (synopsis "High-quality 2D graphics rendering engine for C++")
828 (description
829 "Anti-Grain Geometry is a high quality rendering engine written in C++.
830It supports sub-pixel resolutions and anti-aliasing. It is also library for
831rendering SVG graphics.")
832 (license license:gpl2+)))
f76d56d2
BW
833
834(define-public python-pastel
835 (package
836 (name "python-pastel")
1e8826bd 837 (version "0.1.1")
f76d56d2
BW
838 (source
839 (origin
840 (method url-fetch)
841 (uri (pypi-uri "pastel" version))
842 (sha256
843 (base32
1e8826bd 844 "1qxcrcl8pzh66l8s6hym153mijdhwna0afcsmgca0bj4n80ijfxz"))))
f76d56d2 845 (build-system python-build-system)
1e8826bd 846 (arguments
847 `(#:phases (modify-phases %standard-phases
848 (replace 'check
849 (lambda _ (invoke "pytest" "pastel" "tests/"))))))
f76d56d2
BW
850 (native-inputs
851 `(("python-pytest" ,python-pytest)))
852 (home-page "https://github.com/sdispater/pastel")
853 (synopsis "Library to colorize strings in your terminal")
854 (description "Pastel is a simple library to help you colorize strings in
1e8826bd 855your terminal.")
f76d56d2
BW
856 (license license:expat)))
857
858(define-public python2-pastel
859 (package-with-python2 python-pastel))
17153d18
MO
860
861(define-public fgallery
862 (package
863 (name "fgallery")
864 (version "1.8.2")
865 (source (origin
866 (method url-fetch)
867 (uri
868 (string-append
869 "http://www.thregr.org/~wavexx/software/fgallery/releases/"
870 "fgallery-" version ".zip"))
871 (sha256
872 (base32
873 "18wlvqbxcng8pawimbc8f2422s8fnk840hfr6946lzsxr0ijakvf"))))
874 (build-system gnu-build-system)
875 (arguments
876 `(#:tests? #f ; no tests
877 #:phases
878 (modify-phases %standard-phases
879 (delete 'configure)
880 (delete 'build)
881 (replace 'install
882 (lambda* (#:key inputs outputs #:allow-other-keys)
883 (let* ((out (assoc-ref outputs "out"))
884 (bin (string-append out "/bin/"))
885 (share (string-append out "/share/fgallery"))
886 (man (string-append out "/share/man/man1"))
887 (perl5lib (getenv "PERL5LIB"))
888 (script (string-append share "/fgallery")))
889 (define (bin-directory input-name)
890 (string-append (assoc-ref inputs input-name) "/bin"))
891
892 (mkdir-p man)
893 (copy-file "fgallery.1" (string-append man "/fgallery.1"))
894
895 (mkdir-p share)
896 (copy-recursively "." share)
897
898 ;; fgallery copies files from store when it is run. The
899 ;; read-only permissions from the store directories will cause
900 ;; fgallery to fail. Do not preserve file attributes when
901 ;; copying files to prevent it.
902 (substitute* script
903 (("'cp'")
904 "'cp', '--no-preserve=all'"))
905
906 (mkdir-p bin)
907 (symlink script (string-append out "/bin/fgallery"))
908
909 (wrap-program script
910 `("PATH" ":" prefix
911 ,(map bin-directory '("imagemagick"
912 "lcms"
913 "fbida"
914 "libjpeg"
915 "zip"
916 "jpegoptim"
917 "pngcrush"
918 "p7zip")))
919 `("PERL5LIB" ":" prefix (,perl5lib)))
920 #t))))))
921 (native-inputs
922 `(("unzip" ,unzip)))
923 ;; TODO: Add missing optional dependency: facedetect.
924 (inputs
925 `(("imagemagick" ,imagemagick)
926 ("lcms" ,lcms)
927 ("fbida" ,fbida)
928 ("libjpeg" ,libjpeg)
929 ("zip" ,zip)
930 ("perl" ,perl)
931 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
932 ("perl-image-exiftool" ,perl-image-exiftool)
933 ("jpegoptim" ,jpegoptim)
934 ("pngcrush" ,pngcrush)
935 ("p7zip" ,p7zip)))
936 (home-page "http://www.thregr.org/~wavexx/software/fgallery/")
937 (synopsis "Static photo gallery generator")
938 (description
939 "FGallery is a static, JavaScript photo gallery generator with minimalist
940look. The result can be uploaded on any web server without additional
941requirements.")
942 (license license:gpl2+)))
13f30b54
CZ
943
944(define-public opensubdiv
945 (package
946 (name "opensubdiv")
a31b7457 947 (version "3.4.0")
13f30b54
CZ
948 (source (origin
949 (method git-fetch)
950 (uri (git-reference
a31b7457
MB
951 (url "https://github.com/PixarAnimationStudios/OpenSubdiv")
952 (commit (string-append "v" (string-join (string-split version #\.)
953 "_")))))
13f30b54
CZ
954 (file-name (git-file-name name version))
955 (sha256
956 (base32
957 "0cippg6aqc5dlya1cmh3908pwssrg52fwgyylnvz5343yrxmgk12"))))
958 (build-system cmake-build-system)
959 (arguments
960 `(#:phases (modify-phases %standard-phases
961 (add-before 'configure 'set-glew-location
962 (lambda* (#:key inputs #:allow-other-keys)
963 (setenv "GLEW_LOCATION" (assoc-ref inputs "glew"))
964 #t))
965 (add-before 'check 'start-xorg-server
966 (lambda* (#:key inputs #:allow-other-keys)
967 ;; The test suite requires a running X server.
968 (system (string-append (assoc-ref inputs "xorg-server")
969 "/bin/Xvfb :1 &"))
970 (setenv "DISPLAY" ":1")
971 #t)))))
972 (native-inputs
ff337525 973 `(("xorg-server" ,xorg-server-for-tests)))
13f30b54 974 (inputs
5edad6c7 975 `(("glew" ,glew)
13f30b54
CZ
976 ("libxrandr" ,libxrandr)
977 ("libxcursor" ,libxcursor)
978 ("libxinerama" ,libxinerama)
979 ("libxi" ,libxi)
980 ("zlib" ,zlib)
981 ("glfw" ,glfw)))
5331dcd6 982 (home-page "https://graphics.pixar.com/opensubdiv/")
13f30b54
CZ
983 (synopsis "High performance subdivision surface evaluation")
984 (description "OpenSubdiv is a set of libraries that implement high
985performance subdivision surface (subdiv) evaluation on massively parallel CPU
986and GPU architectures.")
987 (license license:asl2.0)))
c3c0eda6
SS
988
989(define-public opencsg
990 (let ((dot-to-dash (lambda (c) (if (char=? c #\.) #\- c))))
991 (package
992 (name "opencsg")
993 (version "1.4.2")
994 (source
995 (origin
996 (method git-fetch)
997 (uri (git-reference
998 (url "https://github.com/floriankirsch/OpenCSG.git")
999 (commit (string-append "opencsg-"
1000 (string-map dot-to-dash version)
1001 "-release"))))
1002 (file-name (git-file-name name version))
1003 (sha256
1004 (base32
1005 "00m4vs6jn3scqczscc4591l1d6zg6anqp9v1ldf9ymf70rdyvm7m"))))
1006 (build-system gnu-build-system)
1007 (arguments
1008 `(#:phases
1009 (modify-phases %standard-phases
1010 (replace 'configure
1011 (lambda* (#:key outputs #:allow-other-keys)
1012 (substitute* "src/Makefile"
1013 (("/usr/local") (assoc-ref outputs "out")))
1014 #t))
1015 (add-before 'build 'skip-example
1016 (lambda _ (chdir "src") #t)))))
1017 (inputs
1018 `(("glew" ,glew)
1019 ("freeglut" ,freeglut)))
1020 (synopsis "Library for rendering Constructive Solid Geometry (CSG)")
1021 (description
1022 "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using
1023OpenGL. CSG is an approach for modeling complex 3D-shapes using simpler ones.
1024For example, two shapes can be combined by uniting them, by intersecting them,
1025or by subtracting one shape from the other.")
1026 (home-page "http://www.opencsg.org/")
1027 (license license:gpl2))))
f36617cb
JS
1028
1029(define-public coin3D
24268ec4
TGR
1030 ;; The ‘4.0.0’ zip archive isn't stable, nor in fact a release. See:
1031 ;; https://bitbucket.org/Coin3D/coin/issues/179/coin-400-srczip-has-been-modified
1032 (let ((revision 1)
1033 (changeset "ab8d0e47a4de3230a8137feb39c142d6ba45f97d"))
1034 (package
1035 (name "coin3D")
1036 (version
1037 (simple-format #f "3.1.3-~A-~A" revision (string-take changeset 7)))
1038 (source
1039 (origin
1040 (method hg-fetch)
1041 (uri (hg-reference
1042 (url "https://bitbucket.org/Coin3D/coin")
1043 (changeset changeset)))
1044 (file-name (git-file-name name version))
1045 (sha256
1046 (base32 "1ff44jz6lg4rylljvy69n1hcjh9y6achbv9jpn1cv2sf8cxn3r2j"))
1047 (modules '((guix build utils)))
1048 (snippet
1049 '(begin
1050 (for-each delete-file
1051 '("cfg/csubst.exe"
1052 "cfg/wrapmsvc.exe"))
1053 #t))))
1054 (build-system cmake-build-system)
1055 (native-inputs
1056 `(("doxygen" ,doxygen)
1057 ("graphviz" ,graphviz)))
1058 (inputs
1059 `(("boost" ,boost)
1060 ("freeglut" ,freeglut)
1061 ("glew" ,glew)))
1062 (arguments
1063 `(#:configure-flags
1064 (list
1065 "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
1066 (string-append "-DBOOST_ROOT="
1067 (assoc-ref %build-inputs "boost")))))
1068 (home-page "https://bitbucket.org/Coin3D/coin/wiki/Home")
1069 (synopsis
1070 "High-level 3D visualization library with Open Inventor 2.1 API")
1071 (description
1072 "Coin is a 3D graphics library with an Application Programming Interface
f36617cb
JS
1073based on the Open Inventor 2.1 API. For those who are not familiar with
1074Open Inventor, it is a scene-graph based retain-mode rendering and model
1075interaction library, written in C++, which has become the de facto
1076standard graphics library for 3D visualization and visual simulation
1077software in the scientific and engineering community.")
24268ec4 1078 (license license:bsd-3))))
ce226e9d
JK
1079
1080(define-public superfamiconv
1081 (package
1082 (name "superfamiconv")
1083 (version "0.8.8")
1084 (source
1085 (origin
1086 (method git-fetch)
1087 (uri (git-reference
1088 (url "https://github.com/Optiroc/SuperFamiconv")
1089 (commit (string-append "v" version))))
1090 (file-name (git-file-name name version))
1091 (sha256
1092 (base32
1093 "0848szv6a2b8wdganh6mw5i8vn8cqvn1kbwzx7mb9wlrf5wzqn37"))))
1094 (build-system gnu-build-system)
1095 (arguments
1096 `(#:tests? #f ; no tests
1097 #:phases
1098 (modify-phases %standard-phases
1099 (delete 'configure)
1100 (replace 'install
1101 (lambda* (#:key outputs #:allow-other-keys)
1102 (let* ((outdir (assoc-ref outputs "out"))
1103 (bindir (string-append outdir "/bin")))
1104 (install-file "bin/superfamiconv" bindir)
1105 #t))))))
1106 (home-page "https://github.com/Optiroc/SuperFamiconv")
1107 (synopsis "Tile graphics converter supporting SNES, Game Boy Color
1108and PC Engine formats")
1109 (description "SuperFamiconv is a converter for tiled graphics, supporting
1110the graphics formats of the SNES, Game Boy Color and PC Engine game consoles.
1111Automated palette selection is supported.")
1112 (license license:expat)))