1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2015, 2016 Ludovic Courtès <ludo@gnu.org>
3 ;;; Copyright © 2015 Tomáš Čech <sleep_walker@gnu.org>
4 ;;; Copyright © 2016, 2019 Leo Famulari <leo@famulari.name>
5 ;;; Copyright © 2016, 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2016, 2018 Efraim Flashner <efraim@flashner.co.il>
7 ;;; Copyright © 2016 Andreas Enge <andreas@enge.fr>
8 ;;; Copyright © 2017 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
9 ;;; Copyright © 2017, 2018 Ben Woodcroft <donttrustben@gmail.com>
10 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
11 ;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
12 ;;; Copyright © 2018 Alex Kost <alezost@gmail.com>
13 ;;; Copyright © 2018 Kei Kebreau <kkebreau@posteo.net>
14 ;;; Copyright © 2019, 2020 Mark H Weaver <mhw@netris.org>
15 ;;; Copyright © 2019 Carlo Zancanaro <carlo@zancanaro.id.au>
16 ;;; Copyright © 2019 Steve Sprang <scs@stevesprang.com>
17 ;;; Copyright © 2019 John Soo <jsoo1@asu.edu>
18 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
19 ;;; Copyright © 2019, 2020 Marius Bakke <mbakke@fastmail.com>
20 ;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
21 ;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
22 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
23 ;;; Copyright © 2020 Raghav Gururajan <raghavgururajan@disroot.org>
24 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
25 ;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
27 ;;; This file is part of GNU Guix.
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42 (define-module (gnu packages graphics)
43 #:use-module (gnu packages)
44 #:use-module (gnu packages algebra)
45 #:use-module (gnu packages audio)
46 #:use-module (gnu packages autotools)
47 #:use-module (gnu packages base)
48 #:use-module (gnu packages bash)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages boost)
51 #:use-module (gnu packages cdrom)
52 #:use-module (gnu packages check)
53 #:use-module (gnu packages compression)
54 #:use-module (gnu packages crypto)
55 #:use-module (gnu packages datastructures)
56 #:use-module (gnu packages documentation)
57 #:use-module (gnu packages flex)
58 #:use-module (gnu packages fonts)
59 #:use-module (gnu packages fontutils)
60 #:use-module (gnu packages freedesktop)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages ghostscript)
63 #:use-module (gnu packages gl)
64 #:use-module (gnu packages glib)
65 #:use-module (gnu packages gnome)
66 #:use-module (gnu packages gnunet)
67 #:use-module (gnu packages graphviz)
68 #:use-module (gnu packages gstreamer)
69 #:use-module (gnu packages gtk)
70 #:use-module (gnu packages haskell-xyz)
71 #:use-module (gnu packages image)
72 #:use-module (gnu packages image-processing)
73 #:use-module (gnu packages imagemagick)
74 #:use-module (gnu packages jemalloc)
75 #:use-module (gnu packages kde-frameworks)
76 #:use-module (gnu packages linux)
77 #:use-module (gnu packages lua)
78 #:use-module (gnu packages maths)
79 #:use-module (gnu packages mp3)
80 #:use-module (gnu packages multiprecision)
81 #:use-module (gnu packages pdf)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages photo)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages plotutils)
86 #:use-module (gnu packages pth)
87 #:use-module (gnu packages pulseaudio) ; libsndfile, libsamplerate
88 #:use-module (gnu packages python)
89 #:use-module (gnu packages python-xyz)
90 #:use-module (gnu packages qt)
91 #:use-module (gnu packages readline)
92 #:use-module (gnu packages sdl)
93 #:use-module (gnu packages swig)
94 #:use-module (gnu packages tbb)
95 #:use-module (gnu packages upnp)
96 #:use-module (gnu packages video)
97 #:use-module (gnu packages xiph)
98 #:use-module (gnu packages xml)
99 #:use-module (gnu packages xorg)
100 #:use-module (gnu packages xdisorg)
101 #:use-module (guix build-system copy)
102 #:use-module (guix build-system cmake)
103 #:use-module (guix build-system gnu)
104 #:use-module (guix build-system meson)
105 #:use-module (guix build-system python)
106 #:use-module (guix build-system qt)
107 #:use-module (guix download)
108 #:use-module (guix git-download)
109 #:use-module (guix hg-download)
110 #:use-module ((guix licenses) #:prefix license:)
111 #:use-module (guix packages)
112 #:use-module (guix utils))
114 (define-public eglexternalplatform
116 (name "eglexternalplatform")
123 (url "https://github.com/NVIDIA/eglexternalplatform.git")
126 (git-file-name name version))
128 (base32 "0lr5s2xa1zn220ghmbsiwgmx77l156wk54c7hybia0xpr9yr2nhb"))))
129 (build-system copy-build-system)
132 (modify-phases %standard-phases
133 (add-after 'unpack 'patch-pkgconfig
134 (lambda* (#:key outputs #:allow-other-keys)
135 (substitute* "eglexternalplatform.pc"
137 (assoc-ref outputs "out")))
139 (add-after 'install 'revise
140 (lambda* (#:key outputs #:allow-other-keys)
141 (let* ((out (assoc-ref outputs "out")))
142 (mkdir-p (string-append out "/include/EGL"))
144 (string-append out "/interface")
145 (string-append out "/include/EGL"))
146 (mkdir-p (string-append out "/share/pkgconfig"))
148 (string-append out "/eglexternalplatform.pc")
149 (string-append out "/share/pkgconfig/eglexternalplatform.pc"))
150 (for-each delete-file-recursively
152 (string-append out "/samples")
153 (string-append out "/COPYING")
154 (string-append out "/README.md"))))
156 (synopsis "EGL External Platform interface")
157 (description "EGLExternalPlatform is an specification of the EGL External
158 Platform interface for writing EGL platforms and their interactions with modern
159 window systems on top of existing low-level EGL platform implementations. This
160 keeps window system implementation specifics out of EGL drivers by using
161 application-facing EGL functions.")
162 (home-page "https://github.com/NVIDIA/eglexternalplatform")
163 (license license:expat)))
165 (define-public egl-wayland
174 (url "https://github.com/NVIDIA/egl-wayland.git")
177 (git-file-name name version))
179 (base32 "09r6a69z75j3hb9751g3ap4gm1xn71aw3j7z0c7jns292cnaa76n"))))
180 (build-system meson-build-system)
182 `(("pkg-config" ,pkg-config)))
185 ("wayland" ,wayland)))
187 `(("eglexternalplatform" ,eglexternalplatform)))
188 (synopsis "EGLStream-based Wayland external platform")
189 (description "EGL-Wayland is an implementation of a EGL External Platform
190 library to add client-side Wayland support to EGL on top of EGLDevice and
191 EGLStream families of extensions.")
192 (home-page "https://github.com/NVIDIA/egl-wayland")
193 (license license:expat)))
204 (url "https://github.com/hodefoting/mmm.git")
207 (git-file-name name version))
209 (base32 "1xmcv6rwinqsbr863rgl9005h2jlmd7k2qrwsc1h4fb8r61ykpjl"))))
210 (build-system meson-build-system)
213 ("pkg-config" ,pkg-config)))
218 (synopsis "Memory Mapped Machine")
219 (description "MMM is a shared memory protocol for virtualising access to
220 framebuffer graphics, audio output and input event.")
221 (home-page "https://github.com/hodefoting/mrg")
222 (license license:isc)))
224 (define-public directfb
233 (url "https://github.com/deniskropp/DirectFB.git")
234 (commit "DIRECTFB_1_7_7")))
235 (file-name (git-file-name name version))
237 (base32 "0bs3yzb7hy3mgydrj8ycg7pllrd2b6j0gxj596inyr7ihssr3i0y"))))
238 (build-system gnu-build-system)
241 (modify-phases %standard-phases
242 (add-after 'unpack 'disable-configure-during-bootstrap
244 (substitute* "autogen.sh"
245 (("^.*\\$srcdir/configure.*") ""))
248 `(("autoconf" ,autoconf)
249 ("automake" ,automake)
252 ("pkg-config" ,pkg-config)))
256 ("freetype" ,freetype)
258 ("gstreamer" ,gstreamer)
261 ("jpeg" ,libjpeg-turbo)
264 ("libtimidity" ,libtimidity)
265 ("linux-headers" ,linux-libre-headers)
277 ("vorbisfile" ,libvorbis)
281 ("xcomposite" ,libxcomposite)
283 ("xproto" ,xorgproto)
287 (synopsis "DFB Graphics Library")
288 (description "DirectFB is a graphics library which was designed with embedded
289 systems in mind. It offers maximum hardware accelerated performance at a
290 minimum of resource usage and overhead.")
291 (home-page "http://www.directfb.org/")
292 (license license:lgpl2.1+)))
303 (url "https://github.com/deniskropp/flux.git")
305 (file-name (git-file-name name version))
307 (base32 "11f3ypg0sdq5kj69zgz6kih1yrzgm48r16spyvzwvlswng147410"))))
308 (build-system gnu-build-system)
310 `(("autoconf" ,autoconf)
311 ("automake" ,automake)
313 ("pkg-config" ,pkg-config)))
314 (synopsis "Interface description language")
315 (description "Flux is an interface description language used by DirectFB.
316 Fluxcomp compiles .flux files to .cpp or .c files.")
317 (home-page "http://www.directfb.org/")
318 (license license:lgpl2.1+))) ; Same as DirectFB
328 (string-append "https://fox-toolkit.org/ftp/fox-" version ".tar.gz"))
330 (base32 "08w98m6wjadraw1pi13igzagly4b2nfa57kdqdnkjfhgkvg1bvv5"))))
331 (build-system gnu-build-system)
334 (modify-phases %standard-phases
335 (add-after 'unpack 'patch
337 (substitute* "configure"
338 (("-I/usr/include/freetype2")
341 (assoc-ref %build-inputs "freetype")
342 "/include/freetype2"))))
345 `(("doxygen" ,doxygen)))
348 ("freetype" ,freetype)
351 ("jpeg" ,libjpeg-turbo)
355 ("xcursor" ,libxcursor)
357 ("xfixes" ,libxfixes)
360 ("xrandr" ,libxrandr)
361 ("xrender" ,libxrender)
362 ("xshm" ,libxshmfence)
364 (synopsis "Widget Toolkit for building GUI")
365 (description"FOX (Free Objects for X) is a C++ based Toolkit for developing
366 Graphical User Interfaces easily and effectively. It offers a wide, and
367 growing, collection of Controls, and provides state of the art facilities such
368 as drag and drop, selection, as well as OpenGL widgets for 3D graphical
369 manipulation. FOX also implements icons, images, and user-convenience features
370 such as status line help, and tooltips. Tooltips may even be used for 3D
372 (home-page "http://www.fox-toolkit.org")
373 (license license:lgpl2.1+)))
375 (define-public autotrace
376 (let ((commit "travis-20190624.59")
377 (version-base "0.40.0"))
380 (version (string-append version-base "-"
381 (if (string-prefix? "travis-" commit)
382 (string-drop commit 7)
387 (url "https://github.com/autotrace/autotrace")
389 (file-name (git-file-name name version))
392 "0mk4yavy42dj0pszr1ggnggpvmzs4ds46caa9wr55cqsypn7bq6s"))))
393 (build-system gnu-build-system)
395 `(#:phases (modify-phases %standard-phases
396 ;; See: https://github.com/autotrace/autotrace/issues/27.
397 (add-after 'unpack 'include-spline.h-header
399 (substitute* "Makefile.am"
400 ((".*src/types.h.*" all)
401 (string-append all "\t\tsrc/spline.h \\\n")))
403 ;; See: https://github.com/autotrace/autotrace/issues/26.
406 (invoke "sh" "tests/runtests.sh"))))))
409 ("pkg-config" ,pkg-config)
410 ("autoconf" ,autoconf)
411 ("automake" ,automake)
412 ("intltool" ,intltool)
414 ("gettext" ,gettext-minimal)))
417 ("libjpeg" ,libjpeg-turbo)
419 ("imagemagick" ,imagemagick)
420 ("pstoedit" ,pstoedit)))
421 (home-page "https://github.com/autotrace/autotrace")
422 (synopsis "Bitmap to vector graphics converter")
423 (description "AutoTrace is a utility for converting bitmap into vector
424 graphics. It can trace outlines and midlines, effect color reduction or
425 despeckling and has support for many input and output formats. It can be used
426 with the @command{autotrace} utility or as a C library, @code{libautotrace}.")
427 (license (list license:gpl2+ ;for the utility itself
428 license:lgpl2.1+))))) ;for use as a library
430 (define-public blender
436 (uri (string-append "https://download.blender.org/source/"
437 "blender-" version ".tar.xz"))
440 "0xyawly00a59hfdb6b7va84k5fhcv2mxnzd77vs22bzi9y7sap43"))))
441 (build-system cmake-build-system)
443 (let ((python-version (version-major+minor (package-version python))))
444 `(;; Test files are very large and not included in the release tarball.
447 (list "-DWITH_CODEC_FFMPEG=ON"
448 "-DWITH_CODEC_SNDFILE=ON"
450 "-DWITH_DOC_MANPAGE=ON"
452 "-DWITH_IMAGE_OPENJPEG=ON"
453 "-DWITH_INPUT_NDOF=ON"
454 "-DWITH_INSTALL_PORTABLE=OFF"
456 "-DWITH_MOD_OCEANSIM=ON"
457 "-DWITH_OPENSUBDIV=ON"
458 "-DWITH_PYTHON_INSTALL=OFF"
459 (string-append "-DPYTHON_LIBRARY=python" ,python-version)
460 (string-append "-DPYTHON_LIBPATH=" (assoc-ref %build-inputs "python")
462 (string-append "-DPYTHON_INCLUDE_DIR=" (assoc-ref %build-inputs "python")
463 "/include/python" ,python-version)
464 (string-append "-DPYTHON_VERSION=" ,python-version)
465 (string-append "-DPYTHON_NUMPY_PATH="
466 (assoc-ref %build-inputs "python-numpy")
467 "/lib/python" ,python-version "/site-packages/"))
469 (modify-phases %standard-phases
470 ;; XXX This file doesn't exist in the Git sources but will probably
471 ;; exist in the eventual 2.80 source tarball.
472 (add-after 'unpack 'fix-broken-import
474 (substitute* "release/scripts/addons/io_scene_fbx/json2fbx.py"
475 (("import encode_bin") "from . import encode_bin"))
477 (add-after 'set-paths 'add-ilmbase-include-path
478 (lambda* (#:key inputs #:allow-other-keys)
479 ;; OpenEXR propagates ilmbase, but its include files do not appear
480 ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
481 ;; the CPATH to satisfy the dependency on "half.h".
483 (string-append (assoc-ref inputs "ilmbase")
485 ":" (or (getenv "CPATH") "")))
489 ("jemalloc" ,jemalloc)
492 ("libxrender" ,libxrender)
493 ("opencolorio" ,opencolorio)
494 ("openimageio" ,openimageio)
496 ("opensubdiv" ,opensubdiv)
498 ("openjpeg" ,openjpeg)
499 ("libjpeg" ,libjpeg-turbo)
505 ("libsndfile" ,libsndfile)
506 ("freetype" ,freetype)
510 ("python-numpy" ,python-numpy)
513 (home-page "https://blender.org/")
514 (synopsis "3D graphics creation suite")
516 "Blender is a 3D graphics creation suite. It supports the entirety of
517 the 3D pipeline—modeling, rigging, animation, simulation, rendering,
518 compositing and motion tracking, even video editing and game creation. The
519 application can be customized via its API for Python scripting.")
520 (license license:gpl2+)))
522 (define-public blender-2.79
528 (uri (string-append "https://download.blender.org/source/"
529 "blender-" version ".tar.gz"))
532 "1g4kcdqmf67srzhi3hkdnr4z1ph4h9sza1pahz38mrj998q4r52c"))
533 (patches (search-patches "blender-2.79-newer-ffmpeg.patch"
534 "blender-2.79-oiio2.patch"
535 ;; The following patches may be
536 ;; needed when the default GCC is
538 ;; "blender-2.79-gcc8.patch"
539 ;; "blender-2.79-gcc9.patch"
540 "blender-2.79-python-3.7-fix.patch"
541 "blender-2.79-python-3.8-fix.patch"))))
542 (build-system cmake-build-system)
544 (let ((python-version (version-major+minor (package-version python))))
545 `(;; Test files are very large and not included in the release tarball.
548 (list "-DWITH_CODEC_FFMPEG=ON"
549 "-DWITH_CODEC_SNDFILE=ON"
551 "-DWITH_DOC_MANPAGE=ON"
553 "-DWITH_GAMEENGINE=ON"
554 "-DWITH_IMAGE_OPENJPEG=ON"
555 "-DWITH_INPUT_NDOF=ON"
556 "-DWITH_INSTALL_PORTABLE=OFF"
558 "-DWITH_MOD_OCEANSIM=ON"
560 "-DWITH_PYTHON_INSTALL=OFF"
561 "-DWITH_PYTHON_INSTALL=OFF"
562 "-DWITH_SYSTEM_OPENJPEG=ON"
563 (string-append "-DPYTHON_LIBRARY=python" ,python-version)
564 (string-append "-DPYTHON_LIBPATH=" (assoc-ref %build-inputs "python")
566 (string-append "-DPYTHON_INCLUDE_DIR=" (assoc-ref %build-inputs "python")
567 "/include/python" ,python-version)
568 (string-append "-DPYTHON_VERSION=" ,python-version))
570 (modify-phases %standard-phases
571 (add-after 'unpack 'fix-broken-import
573 (substitute* "release/scripts/addons/io_scene_fbx/json2fbx.py"
574 (("import encode_bin") "from . import encode_bin"))
576 (add-after 'set-paths 'add-ilmbase-include-path
577 (lambda* (#:key inputs #:allow-other-keys)
578 ;; OpenEXR propagates ilmbase, but its include files do not appear
579 ;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
580 ;; the CPATH to satisfy the dependency on "half.h".
582 (string-append (assoc-ref inputs "ilmbase")
584 ":" (or (getenv "CPATH") "")))
588 ("jemalloc" ,jemalloc)
590 ("openimageio" ,openimageio)
593 ("openjpeg" ,openjpeg)
594 ("libjpeg" ,libjpeg-turbo)
600 ("libsndfile" ,libsndfile)
601 ("freetype" ,freetype)
606 (home-page "https://blender.org/")
607 (synopsis "3D graphics creation suite")
609 "Blender is a 3D graphics creation suite. It supports the entirety of
610 the 3D pipeline—modeling, rigging, animation, simulation, rendering,
611 compositing and motion tracking, even video editing and game creation. The
612 application can be customized via its API for Python scripting.
614 NOTE: This older version of Blender is the last release that does not require
615 OpenGL 3. It is retained for use with older computers.")
616 (license license:gpl2+)))
625 (url "https://github.com/guillaumechereau/goxel")
626 (commit (string-append "v" version))))
627 (file-name (git-file-name name version))
630 "1wmxy5wfk1xrqgz0y0zcr4vkddylqc70cv4vzk117x6whjnldsm3"))))
631 (build-system gnu-build-system)
634 #:phases (modify-phases %standard-phases (delete 'configure))
635 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
638 `(("pkg-config" ,pkg-config)))
643 (home-page "https://goxel.xyz/")
644 (synopsis "Voxel editor")
646 "Goxel is a voxel editor that features unlimited scene size, unlimited
647 history buffer, 24-bit RGB colors, layers, procedural rendering, ray tracing,
648 and export to various formats including the format used by Magicavoxel.")
649 (license license:gpl3+)))
651 (define-public assimp
658 (url "https://github.com/assimp/assimp")
659 (commit (string-append "v" version))))
660 (file-name (git-file-name name version))
663 "1rhyqfhzifdj7yibyanph3rh13ykw3i98dnn8mz65j780472hw28"))))
664 (build-system cmake-build-system)
667 (home-page "http://www.assimp.org/")
668 (synopsis "Asset import library")
670 "The Open Asset Import Library loads more than 40 3D file formats into
671 one unified data structure. Additionally, assimp features various mesh post
672 processing tools: normals and tangent space generation, triangulation, vertex
673 cache locality optimization, removal of degenerate primitives and duplicate
674 vertices, sorting by primitive type, merging of redundant materials and many
676 (license license:bsd-3)))
685 "https://github.com/CGAL/cgal/releases/download/releases/"
686 "CGAL-" version "/CGAL-" version ".tar.xz"))
689 "08lrp3hfwdypggz4138bnkh6bjxn441zg2y9xnq5mrjfc5ini6w1"))))
690 (build-system cmake-build-system)
692 '(#:tests? #f)) ; no test target
697 (home-page "https://www.cgal.org/")
698 (synopsis "Computational geometry algorithms library")
700 "CGAL provides easy access to efficient and reliable geometric algorithms
701 in the form of a C++ library. CGAL is used in various areas needing geometric
702 computation, such as: computer graphics, scientific visualization, computer
703 aided design and modeling, geographic information systems, molecular biology,
704 medical imaging, robotics and motion planning, mesh generation, numerical
705 methods, etc. It provides data structures and algorithms such as
706 triangulations, Voronoi diagrams, polygons, polyhedra, mesh generation, and
709 ;; The 'LICENSE' file explains that a subset is available under more
710 ;; permissive licenses.
711 (license license:gpl3+)))
713 (define-public ilmbase
720 (url "https://github.com/openexr/openexr")
721 (commit (string-append "v" version))))
722 (file-name (git-file-name "ilmbase" version))
725 "1vf8bqld2bpcdi99jbr043y6vp01cp3fvbiasrn66xn91mf6imbn"))
726 (patches (search-patches "ilmbase-fix-tests.patch"))))
727 (build-system cmake-build-system)
729 `(#:phases (modify-phases %standard-phases
730 (add-after 'unpack 'change-directory
734 (home-page "https://www.openexr.com/")
735 (synopsis "Utility C++ libraries for threads, maths, and exceptions")
737 "IlmBase provides several utility libraries for C++. Half is a class
738 that encapsulates ILM's 16-bit floating-point format. IlmThread is a thread
739 abstraction. Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices,
740 quaternions and other useful 2D and 3D math functions. Iex is an
741 exception-handling library.")
742 (license license:bsd-3)))
744 (define-public lib2geom
745 ;; Use the latest master commit, as the 1.0 release suffer build problems.
747 (commit "17e0d21f0afc8489656f9184bff7ad024a42394a"))
750 (version (git-version "1.0" revision commit))
754 (url "https://gitlab.com/inkscape/lib2geom.git")
756 (file-name (git-file-name name version))
759 "0waskrmdrrdjw8pr5cvlkrxywgf376viggpc2jzdqxxpy2k78fpr"))
761 ;; Patch submitted to upstream (see:
762 ;; https://gitlab.com/inkscape/lib2geom/-/merge_requests/32).
763 (search-patches "lib2geom-fix-tests.patch"))
764 (modules '((guix build utils)))
767 ;; Fix py2geom module initialization (see:
768 ;; https://gitlab.com/inkscape/lib2geom/merge_requests/18).
769 (substitute* "src/py2geom/__init__.py"
770 (("_py2geom") "py2geom._py2geom"))
772 (build-system cmake-build-system)
774 `(#:imported-modules ((guix build python-build-system)
775 ,@%cmake-build-system-modules)
776 #:configure-flags '("-D2GEOM_BUILD_SHARED=ON"
777 "-D2GEOM_BOOST_PYTHON=ON"
778 ;; Compiling the Cython bindings fail (see:
779 ;; https://gitlab.com/inkscape/lib2geom/issues/21).
780 "-D2GEOM_CYTHON_BINDINGS=OFF")
782 (modify-phases %standard-phases
783 (add-after 'unpack 'patch-python-lib-install-path
784 (lambda* (#:key inputs outputs #:allow-other-keys)
785 (let* ((python-version (@ (guix build python-build-system)
787 (python-maj-min-version (python-version
788 (assoc-ref inputs "python")))
789 (site-package (string-append
790 (assoc-ref outputs "out")
791 "/lib/python" python-maj-min-version
793 (substitute* '("src/cython/CMakeLists.txt"
794 "src/py2geom/CMakeLists.txt")
795 (("PYTHON_LIB_INSTALL \"[^\"]*\"")
796 (format #f "PYTHON_LIB_INSTALL ~s" site-package))))
798 (native-inputs `(("python" ,python-wrapper)
799 ("googletest" ,googletest)
800 ("pkg-config" ,pkg-config)))
801 (inputs `(("cairo" ,cairo)
802 ("pycairo" ,python-pycairo)
803 ("double-conversion" ,double-conversion)
807 `(("boost" ,boost))) ;referred to in 2geom/pathvector.h.
808 (home-page "https://gitlab.com/inkscape/lib2geom/")
809 (synopsis "C++ 2D graphics library")
810 (description "2geom is a C++ library of mathematics for paths, curves,
811 and other geometric calculations. Designed for vector graphics, it tackles
812 Bézier curves, conic sections, paths, intersections, transformations, and
814 ;; Because the library is linked with the GNU Scientific Library
815 ;; (GPLv3+), the combined work must be licensed as GPLv3+ (see:
816 ;; https://gitlab.com/inkscape/inkscape/issues/784).
817 (license license:gpl3+))))
819 (define-public pstoedit
825 (uri (string-append "mirror://sourceforge/pstoedit/pstoedit/"
826 version "/pstoedit-" version ".tar.gz"))
829 "1kv46g2wsvsvcngkavxl5gnw3l6g5xqnh4kmyx4b39a01d8xiddp"))))
830 (build-system gnu-build-system)
832 `(("pkg-config" ,pkg-config)))
834 `(("ghostscript" ,ghostscript)
835 ("imagemagick" ,imagemagick)
836 ("libplot" ,plotutils)
837 ("libjpeg" ,libjpeg-turbo)
838 ("zlib" ,zlib))) ;else libp2edrvmagick++.so fails to link
839 (home-page "http://www.pstoedit.net/")
840 (synopsis "Converter for PostScript and PDF graphics")
841 (description "The @code{pstoedit} utility allows translating graphics
842 in the PostScript or PDF (Portable Document Format) formats to various
843 other vector formats such as:
848 @item Flattened PostScript
849 @item DXF, a CAD (Computed-Aided Design) exchange format
850 @item PIC (for troff/groff)
851 @item MetaPost (for usage with TeX/LaTeX)
852 @item LaTeX2e picture
853 @item GNU Metafile (for use with plotutils/libplot)
854 @item Any format supported by ImageMagick
856 (license license:gpl2+)))
866 (url "https://github.com/OGRECave/ogre")
867 (commit (string-append "v" version))
868 (recursive? #t))) ;for Dear ImGui submodule
869 (file-name (git-file-name name version))
871 (base32 "1ap3krrl55hswv1n2r3ijf3xrb3kf9dnqvwyrc0fgnc7j7vd45sk"))))
872 (build-system cmake-build-system)
875 (modify-phases %standard-phases
876 (add-before 'configure 'pre-configure
877 ;; CMakeLists.txt forces CMAKE_INSTALL_RPATH value. As
878 ;; a consequence, we cannot suggest ours in configure flags. Fix
880 (lambda* (#:key inputs outputs #:allow-other-keys)
881 (substitute* "CMakeLists.txt"
882 (("set\\(CMAKE_INSTALL_RPATH .*") ""))
885 (let* ((out (assoc-ref %outputs "out"))
887 (string-join (list (string-append out "/lib")
888 (string-append out "/lib/OGRE"))
890 (list (string-append "-DCMAKE_INSTALL_RPATH=" runpath)
891 "-DOGRE_BUILD_DEPENDENCIES=OFF"
892 "-DOGRE_BUILD_TESTS=TRUE"
893 "-DOGRE_INSTALL_DOCS=TRUE"
894 "-DOGRE_INSTALL_SAMPLES=TRUE"
895 "-DOGRE_INSTALL_SAMPLES_SOURCE=TRUE"))))
899 ("googletest" ,googletest-1.8)
900 ("pkg-config" ,pkg-config)))
902 `(("font-dejavu" ,font-dejavu)
903 ("freeimage" ,freeimage)
904 ("freetype" ,freetype)
907 ("libxrandr" ,libxrandr)
911 ("zziplib" ,zziplib)))
912 (synopsis "Scene-oriented, flexible 3D engine written in C++")
914 "OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented,
915 flexible 3D engine written in C++ designed to make it easier and more intuitive
916 for developers to produce applications utilising hardware-accelerated 3D
918 (home-page "https://www.ogre3d.org/")
919 (license license:expat)))
921 (define-public openexr
924 (version (package-version ilmbase))
926 (inherit (package-source ilmbase))
927 (file-name (git-file-name "openexr" version))
928 (modules '((guix build utils)))
931 (substitute* (find-files "OpenEXR" "tmpDir\\.h")
935 (build-system cmake-build-system)
938 (modify-phases %standard-phases
939 (add-after 'unpack 'change-directory
943 (add-after 'change-directory 'increase-test-timeout
945 ;; On armhf-linux, we need to override the CTest default
946 ;; timeout of 1500 seconds for the OpenEXR.IlmImf test.
947 (substitute* "IlmImfTest/CMakeLists.txt"
948 (("add_test\\(NAME OpenEXR\\.IlmImf.*" all)
951 "set_tests_properties(OpenEXR.IlmImf PROPERTIES TIMEOUT 2000)")))
953 ,@(if (not (target-64bit?))
954 `((add-after 'change-directory 'disable-broken-test
955 ;; This test fails on i686. Upstream developers suggest that
956 ;; this test is broken on i686 and can be safely disabled:
957 ;; https://github.com/openexr/openexr/issues/67#issuecomment-21169748
959 (substitute* "IlmImfTest/main.cpp"
960 ((".*testOptimizedInterleavePatterns.*") ""))
964 `(("pkg-config" ,pkg-config)))
966 `(("ilmbase" ,ilmbase) ;used in public headers
967 ("zlib" ,zlib))) ;OpenEXR.pc reads "-lz"
968 (home-page "https://www.openexr.com/")
969 (synopsis "High-dynamic range file format library")
971 "OpenEXR is a high dynamic-range (HDR) image file format developed for
972 use in computer imaging applications. The IlmImf C++ libraries support
973 storage of the \"EXR\" file format for storing 16-bit floating-point images.")
974 (license license:bsd-3)))
976 (define-public openimageio
983 (url "https://github.com/OpenImageIO/oiio")
984 (commit (string-append "Release-" version))))
985 (file-name (git-file-name name version))
988 "0czcls82v71wkw1syib16ncg7463hx0py0xclycsiv4w6i3wlkzz"))))
989 (build-system cmake-build-system)
990 ;; FIXME: To run all tests successfully, test image sets from multiple
991 ;; third party sources have to be present. For details see
992 ;; https://github.com/OpenImageIO/oiio/blob/master/INSTALL
996 `(("pkg-config" ,pkg-config)))
1000 ("libjpeg" ,libjpeg-turbo)
1001 ("libtiff" ,libtiff)
1003 ("openexr" ,openexr)
1004 ("ilmbase" ,ilmbase)
1005 ("python" ,python-wrapper)
1006 ("pybind11" ,pybind11)
1007 ("robin-map" ,robin-map)
1009 (synopsis "C++ library for reading and writing images")
1011 "OpenImageIO is a library for reading and writing images, and a bunch of
1012 related classes, utilities, and applications. There is a particular emphasis
1013 on formats and functionality used in professional, large-scale animation and
1014 visual effects work for film.")
1015 (home-page "https://www.openimageio.org")
1016 (license license:bsd-3)))
1018 (define-public openscenegraph
1020 (name "openscenegraph")
1026 (url "https://github.com/openscenegraph/OpenSceneGraph")
1027 (commit (string-append "OpenSceneGraph-" version))))
1029 (base32 "00i14h82qg3xzcyd8p02wrarnmby3aiwmz0z43l50byc9f8i05n1"))
1030 (file-name (git-file-name name version))))
1032 `((upstream-name . "OpenSceneGraph")))
1033 (build-system cmake-build-system)
1035 `(#:tests? #f ; no test target available
1036 ;; Without this flag, 'rd' will be added to the name of the
1037 ;; library binaries and break linking with other programs.
1038 #:build-type "Release"
1040 (list (string-append "-DCMAKE_INSTALL_RPATH="
1041 (assoc-ref %outputs "out") "/lib:"
1042 (assoc-ref %outputs "out") "/lib64"))))
1044 `(("pkg-config" ,pkg-config)
1047 `(("giflib" ,giflib)
1048 ("libjpeg" ,libjpeg-turbo) ; required for the JPEG texture plugin.
1050 ("librsvg" ,librsvg)
1051 ("libxrandr" ,libxrandr)
1054 (synopsis "High-performance real-time graphics toolkit")
1056 "The OpenSceneGraph is a high-performance 3D graphics toolkit
1057 used by application developers in fields such as visual simulation, games,
1058 virtual reality, scientific visualization and modeling.")
1059 (home-page "http://www.openscenegraph.org")
1060 ;; The 'LICENSE' file explains that the source is licensed under
1061 ;; LGPL 2.1, but with 4 exceptions. This version is called OSGPL.
1062 (license license:lgpl2.1)))
1064 ;; We need this for simgear
1065 (define-public openscenegraph-3.4
1066 (package (inherit openscenegraph)
1067 (name "openscenegraph")
1073 (url "https://github.com/openscenegraph/OpenSceneGraph")
1074 (commit (string-append "OpenSceneGraph-" version))))
1075 (file-name (git-file-name name version))
1078 "1fbzg1ihjpxk6smlq80p3h3ggllbr16ihd2fxpfwzam8yr8yxip9"))))
1080 (substitute-keyword-arguments (package-arguments openscenegraph)
1081 ((#:configure-flags flags)
1083 ;; The jpeg plugin requires conversion between integers and booleans
1084 "-DCMAKE_CXX_FLAGS=-fpermissive"
1087 `(("libjpeg" ,libjpeg-turbo)
1088 ,@(package-inputs openscenegraph)))))
1091 (define-public openmw-openscenegraph
1092 ;; OpenMW prefers its own fork of openscenegraph:
1093 ;; https://wiki.openmw.org/index.php?title=Development_Environment_Setup#OpenSceneGraph.
1094 (let ((commit "36a962845a2c87a6671fd822157e0729d164e940"))
1097 (inherit openscenegraph)
1098 (version (git-version "3.6" "1" commit))
1103 (url "https://github.com/OpenMW/osg/")
1105 (file-name (git-file-name (package-name openscenegraph) version))
1108 "05yhgq3qm5q277y32n5sf36vx5nv5qd3zlhz4csgd3a6190jrnia"))))
1110 (substitute-keyword-arguments (package-arguments openscenegraph)
1111 ((#:configure-flags flags)
1112 ;; As per the above wiki link, the following plugins are enough:
1114 '("-DBUILD_OSG_PLUGINS_BY_DEFAULT=0"
1115 "-DBUILD_OSG_PLUGIN_OSG=1"
1116 "-DBUILD_OSG_PLUGIN_DDS=1"
1117 "-DBUILD_OSG_PLUGIN_TGA=1"
1118 "-DBUILD_OSG_PLUGIN_BMP=1"
1119 "-DBUILD_OSG_PLUGIN_JPEG=1"
1120 "-DBUILD_OSG_PLUGIN_PNG=1"
1121 "-DBUILD_OSG_DEPRECATED_SERIALIZERS=0"
1122 ;; The jpeg plugin requires conversion between integers and booleans
1123 "-DCMAKE_CXX_FLAGS=-fpermissive")
1126 (define-public povray
1133 (url "https://github.com/POV-Ray/povray")
1134 (commit (string-append "v" version))))
1135 (file-name (git-file-name name version))
1138 "1q114n4m3r7qy3yn954fq7p46rg7ypdax5fazxr9yj1jklf1lh6z"))
1139 (modules '((guix build utils)))
1142 ;; Delete bundled libraries.
1143 (delete-file-recursively "libraries")
1145 (build-system gnu-build-system)
1147 `(("autoconf" ,autoconf)
1148 ("automake" ,automake)
1149 ("pkg-config" ,pkg-config)))
1152 ("libjpeg" ,libjpeg-turbo)
1154 ("libtiff" ,libtiff)
1155 ("openexr" ,openexr)
1160 (list "COMPILED_BY=Guix"
1161 (string-append "--with-boost-libdir="
1162 (assoc-ref %build-inputs "boost") "/lib")
1163 "--disable-optimiz-arch")
1165 (modify-phases %standard-phases
1166 (add-after 'unpack 'run-prebuild
1168 (setenv "HOME" (getcwd))
1169 (with-directory-excursion "unix"
1170 (substitute* "prebuild.sh"
1171 (("/bin/sh") (which "sh")))
1172 (invoke "sh" "prebuild.sh"))
1174 ;; The bootstrap script is run by the prebuild script in the
1175 ;; "run-prebuild" phase.
1176 (delete 'bootstrap))))
1177 (synopsis "Tool for creating three-dimensional graphics")
1179 "@code{POV-Ray} is short for the Persistence of Vision Raytracer, a tool
1180 for producing high-quality computer graphics. @code{POV-Ray} creates
1181 three-dimensional, photo-realistic images using a rendering technique called
1182 ray-tracing. It reads in a text file containing information describing the
1183 objects and lighting in a scene and generates an image of that scene from the
1184 view point of a camera also described in the text file. Ray-tracing is not a
1185 fast process by any means, but it produces very high quality images with
1186 realistic reflections, shading, perspective and other effects.")
1187 (home-page "http://www.povray.org/")
1188 (license license:agpl3+)))
1190 (define-public rapicorn
1196 (uri (string-append "https://testbit.eu/pub/dists/rapicorn/"
1197 "rapicorn-" version ".tar.xz"))
1200 "1y51yjrpsihas1jy905m9p3r8iiyhq6bwi2690c564i5dnix1f9d"))
1201 (patches (search-patches "rapicorn-isnan.patch"))))
1202 (build-system gnu-build-system)
1205 (modify-phases %standard-phases
1206 (add-after 'unpack 'fix-tests
1208 ;; Our grep does not support perl regular expressions.
1209 (substitute* "taptool.sh"
1210 (("grep -P") "grep -E"))
1211 ;; Disable path tests because we cannot access /bin or /sbin.
1212 (substitute* "rcore/tests/multitest.cc"
1213 (("TCMP \\(Path::equals \\(\"/bin\"") "//"))
1215 (add-before 'check 'pre-check
1217 ;; The test suite requires a running X server (with DISPLAY
1218 ;; number 99 or higher).
1219 (system "Xvfb :99 &")
1220 (setenv "DISPLAY" ":99")
1222 (add-after 'unpack 'replace-fhs-paths
1224 (substitute* (cons "Makefile.decl"
1225 (find-files "." "^Makefile\\.in$"))
1226 (("/bin/ls") (which "ls"))
1227 (("/usr/bin/env") (which "env")))
1229 ;; These libraries are listed in the "Required" section of the pkg-config
1232 `(("librsvg" ,librsvg)
1235 ("libxml2" ,libxml2)
1236 ("python2-enum34" ,python2-enum34)))
1238 `(("gdk-pixbuf" ,gdk-pixbuf)
1239 ("libpng" ,libpng-1.2)
1240 ("readline" ,readline)
1241 ("libcroco" ,libcroco)
1242 ("python" ,python-2)
1243 ("cython" ,python2-cython)))
1245 `(("pandoc" ,pandoc)
1248 ("doxygen" ,doxygen)
1249 ("graphviz" ,graphviz)
1250 ("intltool" ,intltool)
1251 ("pkg-config" ,pkg-config)
1252 ("xvfb" ,xorg-server-for-tests)))
1253 (home-page "https://rapicorn.testbit.org/")
1254 (synopsis "Toolkit for rapid development of user interfaces")
1256 "Rapicorn is a toolkit for rapid development of user interfaces in C++
1257 and Python. The user interface is designed in a declarative markup language
1258 and is connected to the programming logic using data bindings and commands.")
1259 (license license:mpl2.0)))
1267 (uri (string-append "https://github.com/ampas/CTL/archive/ctl-"
1271 "1gg04pyvw0m398akn0s1l07g5b1haqv5na1wpi5dii1jjd1w3ynp"))))
1272 (build-system cmake-build-system)
1273 (arguments '(#:tests? #f)) ;no 'test' target
1275 ;; Headers include OpenEXR and IlmBase headers.
1276 (propagated-inputs `(("openexr" ,openexr)))
1278 (home-page "http://ampasctl.sourceforge.net")
1279 (synopsis "Color Transformation Language")
1281 "The Color Transformation Language, or CTL, is a small programming
1282 language that was designed to serve as a building block for digital color
1283 management systems. CTL allows users to describe color transforms in a
1284 concise and unambiguous way by expressing them as programs. In order to apply
1285 a given transform to an image, the color management system instructs a CTL
1286 interpreter to load and run the CTL program that describes the transform. The
1287 original and the transformed image constitute the CTL program's input and
1290 ;; The web site says it's under a BSD-3 license, but the 'LICENSE' file
1291 ;; and headers use different wording.
1292 (license (license:non-copyleft "file://LICENSE"))))
1294 (define-public brdf-explorer
1295 ;; There are no release tarballs, and not even tags in the repo,
1296 ;; so use the latest revision.
1297 (let ((commit "5b2cd46f38a06e47207fa7229b72d37beb945019")
1300 (name "brdf-explorer")
1301 (version (string-append "1.0.0-" revision "." (string-take commit 9)))
1305 (url "https://github.com/wdas/brdf")
1309 "06vzbiajzbi2xl8jlff5d45bc9wd68i3jdndfab1f3jgfrd8bsgx"))
1310 (file-name (string-append name "-" version "-checkout"))))
1311 (build-system gnu-build-system)
1313 `(#:phases (modify-phases %standard-phases
1315 (lambda* (#:key outputs #:allow-other-keys)
1316 (let ((out (assoc-ref outputs "out")))
1318 (string-append "prefix=" out)))))
1319 (add-after 'install 'wrap-program
1320 (lambda* (#:key outputs #:allow-other-keys)
1321 (let* ((out (assoc-ref outputs "out"))
1322 (bin (string-append out "/bin"))
1323 (data (string-append
1324 out "/share/brdf")))
1325 (with-directory-excursion bin
1326 (rename-file "brdf" ".brdf-real")
1327 (call-with-output-file "brdf"
1329 (format port "#!/bin/sh
1330 # Run the thing from its home, otherwise it just bails out.
1332 exec -a \"$0\" ~a/.brdf-real~%"
1334 (chmod "brdf" #o555)))
1337 `(("qttools" ,qttools))) ;for 'qmake'
1339 `(("qtbase" ,qtbase)
1342 ("freeglut" ,freeglut)
1344 (home-page "https://www.disneyanimation.com/technology/brdf.html")
1346 "Analyze bidirectional reflectance distribution functions (BRDFs)")
1348 "BRDF Explorer is an application that allows the development and analysis
1349 of bidirectional reflectance distribution functions (BRDFs). It can load and
1350 plot analytic BRDF functions (coded as functions in OpenGL's GLSL shader
1351 language), measured material data from the MERL database, and anisotropic
1352 measured material data from MIT CSAIL. Graphs and visualizations update in
1353 real time as parameters are changed, making it a useful tool for evaluating
1354 and understanding different BRDFs (and other component functions).")
1355 (license license:ms-pl))))
1363 (uri (list (string-append
1364 "ftp://ftp.fau.de/gentoo/distfiles/agg-"
1367 "ftp://ftp.ula.ve/gentoo/distfiles/agg-"
1370 ;; Site was discontinued.
1371 (string-append "http://www.antigrain.com/agg-"
1372 version ".tar.gz")))
1374 (base32 "07wii4i824vy9qsvjsgqxppgqmfdxq0xa87i5yk53fijriadq7mb"))
1375 (patches (search-patches "agg-am_c_prototype.patch"))))
1376 (build-system gnu-build-system)
1379 (list (string-append "--x-includes=" (assoc-ref %build-inputs "libx11")
1381 (string-append "--x-libraries=" (assoc-ref %build-inputs "libx11")
1383 "--disable-examples")
1385 (modify-phases %standard-phases
1388 ;; let's call configure from configure phase and not now
1389 (substitute* "autogen.sh" (("./configure") "# ./configure"))
1390 (invoke "sh" "autogen.sh"))))))
1392 `(("pkg-config" ,pkg-config)
1393 ("libtool" ,libtool)
1394 ("autoconf" ,autoconf)
1395 ("automake" ,automake)))
1397 `(("libx11" ,libx11)
1398 ("freetype" ,freetype)
1401 ;; Antigrain.com was discontinued.
1402 (home-page "http://agg.sourceforge.net/antigrain.com/index.html")
1403 (synopsis "High-quality 2D graphics rendering engine for C++")
1405 "Anti-Grain Geometry is a high quality rendering engine written in C++.
1406 It supports sub-pixel resolutions and anti-aliasing. It is also library for
1407 rendering SVG graphics.")
1408 (license license:gpl2+)))
1410 (define-public python-pastel
1412 (name "python-pastel")
1417 (uri (pypi-uri "pastel" version))
1420 "0dnaw44ss10i10z4ksy0xljknvjap7rb7g0b8p6yzm5x4g2my5a6"))))
1421 (build-system python-build-system)
1423 `(#:phases (modify-phases %standard-phases
1425 (lambda _ (invoke "pytest" "pastel" "tests/"))))))
1427 `(("python-pytest" ,python-pytest)))
1428 (home-page "https://github.com/sdispater/pastel")
1429 (synopsis "Library to colorize strings in your terminal")
1430 (description "Pastel is a simple library to help you colorize strings in
1432 (license license:expat)))
1434 (define-public python2-pastel
1435 (package-with-python2 python-pastel))
1437 (define-public fgallery
1445 "http://www.thregr.org/~wavexx/software/fgallery/releases/"
1446 "fgallery-" version ".zip"))
1449 "18wlvqbxcng8pawimbc8f2422s8fnk840hfr6946lzsxr0ijakvf"))))
1450 (build-system gnu-build-system)
1452 `(#:tests? #f ; no tests
1454 (modify-phases %standard-phases
1458 (lambda* (#:key inputs outputs #:allow-other-keys)
1459 (let* ((out (assoc-ref outputs "out"))
1460 (bin (string-append out "/bin/"))
1461 (share (string-append out "/share/fgallery"))
1462 (man (string-append out "/share/man/man1"))
1463 (perl5lib (getenv "PERL5LIB"))
1464 (script (string-append share "/fgallery")))
1465 (define (bin-directory input-name)
1466 (string-append (assoc-ref inputs input-name) "/bin"))
1469 (copy-file "fgallery.1" (string-append man "/fgallery.1"))
1472 (copy-recursively "." share)
1474 ;; fgallery copies files from store when it is run. The
1475 ;; read-only permissions from the store directories will cause
1476 ;; fgallery to fail. Do not preserve file attributes when
1477 ;; copying files to prevent it.
1480 "'cp', '--no-preserve=all'"))
1483 (symlink script (string-append out "/bin/fgallery"))
1485 (wrap-program script
1487 ,(map bin-directory '("imagemagick"
1495 `("PERL5LIB" ":" prefix (,perl5lib)))
1498 `(("unzip" ,unzip)))
1499 ;; TODO: Add missing optional dependency: facedetect.
1501 `(("imagemagick" ,imagemagick)
1504 ("libjpeg" ,libjpeg-turbo)
1507 ("perl-cpanel-json-xs" ,perl-cpanel-json-xs)
1508 ("perl-image-exiftool" ,perl-image-exiftool)
1509 ("jpegoptim" ,jpegoptim)
1510 ("pngcrush" ,pngcrush)
1512 (home-page "http://www.thregr.org/~wavexx/software/fgallery/")
1513 (synopsis "Static photo gallery generator")
1515 "FGallery is a static, JavaScript photo gallery generator with minimalist
1516 look. The result can be uploaded on any web server without additional
1518 (license license:gpl2+)))
1520 (define-public opensubdiv
1527 (url "https://github.com/PixarAnimationStudios/OpenSubdiv")
1528 (commit (string-append "v" (string-join (string-split version #\.)
1530 (file-name (git-file-name name version))
1533 "0cippg6aqc5dlya1cmh3908pwssrg52fwgyylnvz5343yrxmgk12"))))
1534 (build-system cmake-build-system)
1536 `(#:phases (modify-phases %standard-phases
1537 (add-before 'configure 'set-glew-location
1538 (lambda* (#:key inputs #:allow-other-keys)
1539 (setenv "GLEW_LOCATION" (assoc-ref inputs "glew"))
1541 (add-before 'check 'start-xorg-server
1542 (lambda* (#:key inputs #:allow-other-keys)
1543 ;; The test suite requires a running X server.
1544 (system (string-append (assoc-ref inputs "xorg-server")
1546 (setenv "DISPLAY" ":1")
1549 `(("xorg-server" ,xorg-server-for-tests)))
1552 ("libxrandr" ,libxrandr)
1553 ("libxcursor" ,libxcursor)
1554 ("libxinerama" ,libxinerama)
1558 (home-page "https://graphics.pixar.com/opensubdiv/")
1559 (synopsis "High performance subdivision surface evaluation")
1560 (description "OpenSubdiv is a set of libraries that implement high
1561 performance subdivision surface (subdiv) evaluation on massively parallel CPU
1562 and GPU architectures.")
1563 (license license:asl2.0)))
1565 (define-public opencsg
1566 (let ((dot-to-dash (lambda (c) (if (char=? c #\.) #\- c))))
1574 (url "https://github.com/floriankirsch/OpenCSG")
1575 (commit (string-append "opencsg-"
1576 (string-map dot-to-dash version)
1578 (file-name (git-file-name name version))
1581 "00m4vs6jn3scqczscc4591l1d6zg6anqp9v1ldf9ymf70rdyvm7m"))))
1582 (build-system gnu-build-system)
1585 (modify-phases %standard-phases
1587 (lambda* (#:key outputs #:allow-other-keys)
1588 (substitute* "src/Makefile"
1589 (("/usr/local") (assoc-ref outputs "out")))
1591 (add-before 'build 'skip-example
1592 (lambda _ (chdir "src") #t)))))
1595 ("freeglut" ,freeglut)))
1596 (synopsis "Library for rendering Constructive Solid Geometry (CSG)")
1598 "OpenCSG is a library for rendering Constructive Solid Geometry (CSG) using
1599 OpenGL. CSG is an approach for modeling complex 3D-shapes using simpler ones.
1600 For example, two shapes can be combined by uniting them, by intersecting them,
1601 or by subtracting one shape from the other.")
1602 (home-page "http://www.opencsg.org/")
1603 (license license:gpl2))))
1605 (define-public coin3D
1606 ;; The ‘4.0.0’ zip archive isn't stable, nor in fact a release. See:
1607 ;; https://bitbucket.org/Coin3D/coin/issues/179/coin-400-srczip-has-been-modified
1609 (changeset "ab8d0e47a4de3230a8137feb39c142d6ba45f97d"))
1613 (simple-format #f "3.1.3-~A-~A" revision (string-take changeset 7)))
1618 (url "https://bitbucket.org/Coin3D/coin")
1619 (changeset changeset)))
1620 (file-name (git-file-name name version))
1622 (base32 "1ff44jz6lg4rylljvy69n1hcjh9y6achbv9jpn1cv2sf8cxn3r2j"))
1623 (modules '((guix build utils)))
1626 (for-each delete-file
1628 "cfg/wrapmsvc.exe"))
1630 (build-system cmake-build-system)
1632 `(("doxygen" ,doxygen)
1633 ("graphviz" ,graphviz)))
1636 ("freeglut" ,freeglut)
1641 "-DCOIN_BUILD_DOCUMENTATION_MAN=ON"
1642 (string-append "-DBOOST_ROOT="
1643 (assoc-ref %build-inputs "boost")))))
1644 (home-page "https://bitbucket.org/Coin3D/coin/wiki/Home")
1646 "High-level 3D visualization library with Open Inventor 2.1 API")
1648 "Coin is a 3D graphics library with an Application Programming Interface
1649 based on the Open Inventor 2.1 API. For those who are not familiar with
1650 Open Inventor, it is a scene-graph based retain-mode rendering and model
1651 interaction library, written in C++, which has become the de facto
1652 standard graphics library for 3D visualization and visual simulation
1653 software in the scientific and engineering community.")
1654 (license license:bsd-3))))
1656 (define-public superfamiconv
1658 (name "superfamiconv")
1664 (url "https://github.com/Optiroc/SuperFamiconv")
1665 (commit (string-append "v" version))))
1666 (file-name (git-file-name name version))
1669 "0848szv6a2b8wdganh6mw5i8vn8cqvn1kbwzx7mb9wlrf5wzqn37"))))
1670 (build-system gnu-build-system)
1672 `(#:tests? #f ; no tests
1674 (modify-phases %standard-phases
1677 (lambda* (#:key outputs #:allow-other-keys)
1678 (let* ((outdir (assoc-ref outputs "out"))
1679 (bindir (string-append outdir "/bin")))
1680 (install-file "bin/superfamiconv" bindir)
1682 (home-page "https://github.com/Optiroc/SuperFamiconv")
1683 (synopsis "Tile graphics converter supporting SNES, Game Boy Color
1684 and PC Engine formats")
1685 (description "SuperFamiconv is a converter for tiled graphics, supporting
1686 the graphics formats of the SNES, Game Boy Color and PC Engine game consoles.
1687 Automated palette selection is supported.")
1688 (license license:expat)))
1690 (define-public drawpile
1691 ;; This commit fix building with libmicrohttpd>=0.71.
1692 (let ((commit "ed1a75deb113da2d1df91a28f557509c4897130e")
1696 (version (string-append "2.1.17-" revision "." (string-take commit 9)))
1700 (url "https://github.com/drawpile/Drawpile")
1702 (file-name (git-file-name name version))
1705 "1y21h1hk9ipkjvhjgas0c5hkjyan92vsxbxrn60c906hzqln2fr1"))))
1706 (build-system qt-build-system)
1709 (list "-DTESTS=ON" "-DTOOLS=ON" "-DKIS_TABLET=ON")))
1711 `(("extra-cmake-modules" ,extra-cmake-modules)
1712 ("pkg-config" ,pkg-config)))
1714 `(("giflib" ,giflib)
1715 ("karchive" ,karchive)
1717 ("libmicrohttpd" ,libmicrohttpd)
1718 ("libsodium" ,libsodium)
1721 ;; ("miniupnpc" ,miniupnpc) ;segfaults for some reason
1723 ("qtkeychain" ,qtkeychain)
1724 ("qtmultimedia" ,qtmultimedia)
1726 ("qtx11extras" ,qtx11extras)))
1727 (home-page "https://drawpile.net")
1728 (synopsis "Collaborative drawing program")
1729 (description "Drawpile is a drawing program that allows share the canvas
1730 with other users in real time.
1732 Some feature highlights:
1734 @item Shared canvas using the built-in server or a dedicated server
1735 @item Record, play back and export drawing sessions
1736 @item Simple animation support
1737 @item Layers and blending modes
1739 @item Supports pressure sensitive Wacom tablets
1741 @item Supports OpenRaster file format
1742 @item Encrypted connections using SSL
1743 @item Automatic port forwarding with UPnP
1745 (license license:gpl3+))))