2017-03-15 16:05:20 -04:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
|
;;; Copyright © 2017 John Darrington <jmd@gnu.org>
|
2019-08-13 11:45:01 -04:00
|
|
|
|
;;; Copyright © 2017, 2019 Ricardo Wurmus <rekado@elephly.net>
|
2021-04-02 03:00:36 -04:00
|
|
|
|
;;; Copyright © 2014, 2021 Ludovic Courtès <ludo@gnu.org>
|
2017-03-15 16:05:24 -04:00
|
|
|
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
|
|
|
|
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
|
2021-03-25 16:07:39 -04:00
|
|
|
|
;;; Copyright © 2018–2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-02-16 14:31:37 -05:00
|
|
|
|
;;; Copyright © 2018 Björn Höfling <bjoern.hoefling@bjoernhoefling.de>
|
2018-12-05 13:03:13 -05:00
|
|
|
|
;;; Copyright © 2018 Lprndn <guix@lprndn.info>
|
2021-01-07 14:43:23 -05:00
|
|
|
|
;;; Copyright © 2019, 2021 Efraim Flashner <efraim@flashner.co.il>
|
2020-04-05 17:31:55 -04:00
|
|
|
|
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
|
2021-03-04 23:50:55 -05:00
|
|
|
|
;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
|
2020-08-06 06:02:20 -04:00
|
|
|
|
;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
|
2020-09-17 05:09:21 -04:00
|
|
|
|
;;; Copyright © 2020 Brendan Tildesley <mail@brendan.scot>
|
2021-01-04 19:23:38 -05:00
|
|
|
|
;;; Copyright © 2021 Oleh Malyi <astroclubzp@gmail.com>
|
2021-03-07 09:32:33 -05:00
|
|
|
|
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
2021-03-18 03:46:45 -04:00
|
|
|
|
;;; Copyright © 2021 Andy Tai <atai@atai.org>
|
2021-04-14 09:48:06 -04:00
|
|
|
|
;;; Copyright © 2021 Ekaitz Zarraga <ekaitz@elenq.tech>
|
2021-06-01 05:12:08 -04:00
|
|
|
|
;;; Copyright © 2021 Paul Garlick <pgarlick@tourbillion-technology.com>
|
2021-09-11 04:07:37 -04:00
|
|
|
|
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
|
2021-07-24 04:51:56 -04:00
|
|
|
|
;;; Copyright © 2021 Ivan Gankevich <i.gankevich@spbu.ru>
|
2017-03-15 16:05:20 -04:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages image-processing)
|
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix utils)
|
|
|
|
|
#:use-module (guix download)
|
2019-01-14 04:47:00 -05:00
|
|
|
|
#:use-module (guix git-download)
|
2020-09-17 05:09:21 -04:00
|
|
|
|
#:use-module (guix build-system qt)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (guix build-system cmake)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2021-06-25 02:27:31 -04:00
|
|
|
|
#:use-module (guix build-system python)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
#:use-module (gnu packages)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages algebra)
|
2018-12-05 13:03:13 -05:00
|
|
|
|
#:use-module (gnu packages bison)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages boost)
|
2019-08-13 12:55:46 -04:00
|
|
|
|
#:use-module (gnu packages check)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
#:use-module (gnu packages compression)
|
2019-08-15 03:26:55 -04:00
|
|
|
|
#:use-module (gnu packages curl)
|
2020-08-06 06:02:20 -04:00
|
|
|
|
#:use-module (gnu packages docbook)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
#:use-module (gnu packages documentation)
|
2018-12-05 13:03:13 -05:00
|
|
|
|
#:use-module (gnu packages flex)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
#:use-module (gnu packages fontutils)
|
2019-08-13 11:46:22 -04:00
|
|
|
|
#:use-module (gnu packages geo)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
#:use-module (gnu packages ghostscript)
|
2021-07-24 04:51:56 -04:00
|
|
|
|
#:use-module (gnu packages gimp)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
#:use-module (gnu packages gl)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
#:use-module (gnu packages glib)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages gnome)
|
|
|
|
|
#:use-module (gnu packages graphics)
|
|
|
|
|
#:use-module (gnu packages graphviz)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
#:use-module (gnu packages gstreamer)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
#:use-module (gnu packages gtk)
|
2021-03-09 18:49:53 -05:00
|
|
|
|
#:use-module (gnu packages icu4c)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
#:use-module (gnu packages image)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
#:use-module (gnu packages imagemagick)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages maths)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
#:use-module (gnu packages pdf)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages perl)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
#:use-module (gnu packages photo)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
#:use-module (gnu packages protobuf)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-06-25 02:27:31 -04:00
|
|
|
|
#:use-module (gnu packages python-check)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 08:21:30 -05:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2019-08-15 03:26:55 -04:00
|
|
|
|
#:use-module (gnu packages qt)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
#:use-module (gnu packages serialization)
|
2021-01-07 15:28:21 -05:00
|
|
|
|
#:use-module (gnu packages sqlite)
|
2019-08-13 12:55:46 -04:00
|
|
|
|
#:use-module (gnu packages tbb)
|
2019-03-18 08:16:30 -04:00
|
|
|
|
#:use-module (gnu packages tls)
|
2020-08-16 18:06:07 -04:00
|
|
|
|
#:use-module (gnu packages version-control)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
#:use-module (gnu packages video)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
#:use-module (gnu packages xiph)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
#:use-module (gnu packages xml)
|
2019-01-15 06:18:00 -05:00
|
|
|
|
#:use-module (gnu packages xorg)
|
2019-08-13 11:45:01 -04:00
|
|
|
|
#:use-module (ice-9 match)
|
|
|
|
|
#:use-module (srfi srfi-1))
|
2017-03-15 16:05:20 -04:00
|
|
|
|
|
|
|
|
|
(define-public dcmtk
|
|
|
|
|
(package
|
|
|
|
|
(name "dcmtk")
|
2021-03-09 18:49:53 -05:00
|
|
|
|
(version "3.6.6")
|
2019-03-18 08:14:12 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri
|
|
|
|
|
(string-append "ftp://dicom.offis.de/pub/dicom/offis/software/dcmtk/"
|
|
|
|
|
"dcmtk" (string-join (string-split version #\.) "")
|
|
|
|
|
"/dcmtk-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2021-03-09 18:49:53 -05:00
|
|
|
|
(base32 "13j5yf3p6qj3mr17d77r3kcqchf055hgvk1w15vmdr8f54mwcnb8"))))
|
2019-03-18 08:14:12 -04:00
|
|
|
|
(build-system cmake-build-system)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
(inputs
|
2021-03-09 18:49:53 -05:00
|
|
|
|
`(("icu4c" ,icu4c)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
("libpng" ,libpng)
|
2019-03-18 08:14:12 -04:00
|
|
|
|
("libtiff" ,libtiff)
|
2019-03-18 08:16:30 -04:00
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("openssl" ,openssl)
|
2017-03-15 16:05:20 -04:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
2019-03-18 08:14:12 -04:00
|
|
|
|
`(("doxygen" ,doxygen))) ; for HTML documentation
|
2019-03-18 08:11:56 -04:00
|
|
|
|
(home-page "https://dcmtk.org")
|
2017-03-15 16:05:20 -04:00
|
|
|
|
(synopsis "Libraries and programs implementing parts of the DICOM standard")
|
|
|
|
|
(description "DCMTK is a collection of libraries and applications
|
|
|
|
|
implementing large parts the DICOM standard. It includes software for
|
|
|
|
|
examining, constructing and converting DICOM image files, handling offline
|
|
|
|
|
media, sending and receiving images over a network connection, as well as
|
|
|
|
|
demonstrative image storage and worklist servers.")
|
|
|
|
|
(license (license:fsf-free
|
|
|
|
|
"file://COPYRIGHT"
|
|
|
|
|
"A union of the Apache 2.0 licence and various non-copyleft
|
|
|
|
|
licences similar to the Modified BSD licence."))))
|
2017-03-15 16:05:23 -04:00
|
|
|
|
|
|
|
|
|
(define-public mia
|
|
|
|
|
(package
|
|
|
|
|
(name "mia")
|
2018-01-21 05:15:03 -05:00
|
|
|
|
(version "2.4.6")
|
2017-03-15 16:05:23 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/mia/mia/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/mia-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2018-01-21 05:15:03 -05:00
|
|
|
|
"0j4nd5z7i3v199jh7hqqhwd4g7snchizkc7rhzanpvngqg91m1pb"))))
|
2017-03-15 16:05:23 -04:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "-DMIA_CREATE_NIPYPE_INTERFACES=0"
|
|
|
|
|
"-DCMAKE_CXX_FLAGS=-fpermissive")))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("boost" ,boost)
|
|
|
|
|
("dcmtk" ,dcmtk)
|
|
|
|
|
("doxygen" ,doxygen)
|
|
|
|
|
("eigen" ,eigen)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("fftwf" ,fftwf)
|
|
|
|
|
("gsl" ,gsl)
|
|
|
|
|
("gts" ,gts)
|
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("itpp" ,itpp)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("libxml" ,libxml2)
|
|
|
|
|
("libxml++" ,libxml++)
|
|
|
|
|
("maxflow" ,maxflow)
|
|
|
|
|
("niftilib" ,niftilib)
|
|
|
|
|
("nlopt" ,nlopt)
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2017-03-15 16:05:23 -04:00
|
|
|
|
("python-lxml" ,python2-lxml)
|
|
|
|
|
("vtk" ,vtk)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("python" ,python-2)))
|
|
|
|
|
(home-page "http://mia.sourceforge.net")
|
|
|
|
|
(synopsis "Toolkit for gray scale medical image analysis")
|
|
|
|
|
(description "MIA provides a combination of command line tools, plug-ins,
|
|
|
|
|
and libraries that make it possible run image processing tasks interactively
|
|
|
|
|
in a command shell and to prototype using the shell's scripting language. It
|
|
|
|
|
is built around a plug-in structure that makes it easy to add functionality
|
|
|
|
|
without compromising the original code base and it makes use of a wide variety
|
|
|
|
|
of external libraries that provide additional functionality.")
|
|
|
|
|
(license license:gpl3+)))
|
2017-03-15 16:05:24 -04:00
|
|
|
|
|
2020-08-16 18:06:07 -04:00
|
|
|
|
(define-public opencolorio
|
|
|
|
|
(package
|
|
|
|
|
(name "opencolorio")
|
|
|
|
|
(version "1.1.1")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/AcademySoftwareFoundation/OpenColorIO")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "12srvxca51czpfjl0gabpidj9n84mw78ivxy5w75qhq2mmc798sb"))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
`(begin
|
|
|
|
|
;; Remove bundled tarballs, patches, and .jars(!). XXX: Upstream
|
|
|
|
|
;; claims to have fixed USE_EXTERNAL_YAML, but it still fails with:
|
|
|
|
|
;; https://github.com/AcademySoftwareFoundation/OpenColorIO/issues/517
|
|
|
|
|
;; When removing it, also remove it from the licence field comment.
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
(filter
|
|
|
|
|
(lambda (full-name)
|
|
|
|
|
(let ((file (basename full-name)))
|
|
|
|
|
(not (or (string-prefix? "yaml-cpp-0.3" file)
|
|
|
|
|
(string=? "unittest.h" file)))))
|
|
|
|
|
(find-files "ext" ".*")))
|
|
|
|
|
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list (string-append "-DCMAKE_CXX_FLAGS="
|
|
|
|
|
"-Wno-error=deprecated-declarations "
|
|
|
|
|
"-Wno-error=unused-function")
|
|
|
|
|
"-DOCIO_BUILD_STATIC=OFF"
|
|
|
|
|
;; "-DUSE_EXTERNAL_YAML=ON"
|
|
|
|
|
"-DUSE_EXTERNAL_TINYXML=ON"
|
|
|
|
|
"-DUSE_EXTERNAL_LCMS=ON")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-test-suite
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "src/core_tests/CMakeLists.txt"
|
|
|
|
|
(("/bin/sh") (which "bash")))
|
|
|
|
|
#t)))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("git" ,git)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
;; XXX Adding freeglut, glew, ilmbase, mesa, and openimageio for
|
|
|
|
|
;; ocioconvert fails: error: conflicting declaration ?typedef void
|
|
|
|
|
;; (* PFNGLGETFRAGMENTMATERIALFVSGIXPROC)(GLenum, GLenum, GLfloat*)
|
|
|
|
|
`(("lcms" ,lcms)
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2020-08-16 18:06:07 -04:00
|
|
|
|
("tinyxml" ,tinyxml)))
|
|
|
|
|
(home-page "https://opencolorio.org")
|
|
|
|
|
(synopsis "Color management for visual effects and animation")
|
|
|
|
|
(description
|
|
|
|
|
"OpenColorIO, or OCIO, is a complete color management solution geared
|
|
|
|
|
towards motion picture production, with an emphasis on visual effects and
|
|
|
|
|
computer animation. It provides a straightforward and consistent user
|
|
|
|
|
experience across all supporting applications while allowing for sophisticated
|
|
|
|
|
back-end configuration options suitable for high-end production usage.
|
|
|
|
|
|
|
|
|
|
OCIO is compatible with the @acronym{ACES, Academy Color Encoding
|
|
|
|
|
Specification} and is @acronym{LUT, look-up table}-format agnostic, supporting
|
|
|
|
|
many popular formats.")
|
|
|
|
|
(license (list license:expat ; docs/ociotheme/static, ext/yaml-cpp-*
|
|
|
|
|
license:zlib ; src/core/md5
|
|
|
|
|
license:bsd-3)))) ; the rest
|
|
|
|
|
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(define-public vtk
|
|
|
|
|
(package
|
|
|
|
|
(name "vtk")
|
2021-03-18 03:46:45 -04:00
|
|
|
|
(version "9.0.1")
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
2019-01-30 14:58:54 -05:00
|
|
|
|
(uri (string-append "https://vtk.org/files/release/"
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/VTK-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-03-18 03:46:45 -04:00
|
|
|
|
"1ir2lq9i45ls374lcmjzw0nrm5l5hnm1w47lg8g8d0n2j7hsaf8v"))
|
2021-03-07 09:32:33 -05:00
|
|
|
|
(patches
|
|
|
|
|
(search-patches "vtk-fix-freetypetools-build-failure.patch"))
|
2021-01-07 14:43:23 -05:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (dir)
|
|
|
|
|
(delete-file-recursively
|
|
|
|
|
(string-append "ThirdParty/" dir "/vtk" dir)))
|
2021-03-18 03:46:45 -04:00
|
|
|
|
;; pugixml depended upon unconditionally
|
2021-01-07 15:28:21 -05:00
|
|
|
|
'("doubleconversion" "eigen" "expat" "freetype" "gl2ps"
|
|
|
|
|
"glew" "hdf5" "jpeg" "jsoncpp" "libproj" "libxml2" "lz4"
|
2021-03-18 03:46:45 -04:00
|
|
|
|
"netcdf" "ogg" "png" "sqlite" "theora" "tiff" "zlib"))
|
2021-01-07 14:43:23 -05:00
|
|
|
|
#t))))
|
2021-04-02 03:00:36 -04:00
|
|
|
|
(properties `((release-monitoring-url . "https://vtk.org/download/")))
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:build-type "Release" ;Build without '-g' to save space.
|
2021-01-07 15:28:21 -05:00
|
|
|
|
#:configure-flags '(;"-DBUILD_TESTING:BOOL=TRUE"
|
2021-03-18 03:46:45 -04:00
|
|
|
|
; ; not honored
|
|
|
|
|
"-DVTK_USE_EXTERNAL=OFF" ;; default
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_doubleconversion=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_eigen=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_expat=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_freetype=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_gl2ps=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_glew=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_hdf5=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_jpeg=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_jsoncpp=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_libproj=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_libxml2=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_lz4=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_netcdf=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_ogg=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_png=ON"
|
|
|
|
|
;"-DVTK_MODULE_USE_EXTERNAL_VTK_pugixml=ON" ; breaks IO/CityGML
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_sqlite=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_theora=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_tiff=ON"
|
|
|
|
|
"-DVTK_MODULE_USE_EXTERNAL_VTK_zlib=ON"
|
2021-06-01 05:12:08 -04:00
|
|
|
|
"-DVTK_WRAP_PYTHON=ON"
|
|
|
|
|
"-DVTK_PYTHON_VERSION:STRING=3"
|
2021-03-18 03:46:45 -04:00
|
|
|
|
)
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-sources
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "Common/Core/vtkFloatingPointExceptions.cxx"
|
|
|
|
|
(("<fenv.h>") "<cfenv>"))
|
|
|
|
|
(substitute* "Common/Core/CMakeLists.txt"
|
|
|
|
|
(("fenv.h") "cfenv")))))
|
2021-01-07 15:28:21 -05:00
|
|
|
|
#:tests? #f)) ;XXX: test data not included
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(inputs
|
2021-01-07 15:28:21 -05:00
|
|
|
|
`(("double-conversion" ,double-conversion)
|
|
|
|
|
("eigen" ,eigen)
|
|
|
|
|
("expat" ,expat)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("freetype" ,freetype)
|
2021-01-07 15:28:21 -05:00
|
|
|
|
("gl2ps" ,gl2ps)
|
|
|
|
|
("glew" ,glew)
|
2021-01-07 14:45:04 -05:00
|
|
|
|
("glu" ,glu)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("hdf5" ,hdf5)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("jpeg" ,libjpeg-turbo)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("jsoncpp" ,jsoncpp)
|
|
|
|
|
("libtheora" ,libtheora)
|
2021-01-07 14:45:04 -05:00
|
|
|
|
("libX11" ,libx11)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libXt" ,libxt)
|
2021-01-07 15:28:21 -05:00
|
|
|
|
("lz4" ,lz4)
|
2021-01-07 14:45:04 -05:00
|
|
|
|
("mesa" ,mesa)
|
2021-01-07 15:28:21 -05:00
|
|
|
|
("netcdf" ,netcdf)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("png" ,libpng)
|
2021-10-02 09:22:50 -04:00
|
|
|
|
("proj" ,proj)
|
2021-06-01 05:12:08 -04:00
|
|
|
|
("python", python)
|
2021-01-07 15:28:21 -05:00
|
|
|
|
;("pugixml" ,pugixml)
|
|
|
|
|
("sqlite" ,sqlite)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("tiff" ,libtiff)
|
2021-01-07 14:45:04 -05:00
|
|
|
|
("xorgproto" ,xorgproto)
|
2017-03-15 16:05:24 -04:00
|
|
|
|
("zlib" ,zlib)))
|
2021-03-18 03:46:45 -04:00
|
|
|
|
(propagated-inputs
|
|
|
|
|
;; VTK's 'VTK-vtk-module-find-packages.cmake' calls
|
|
|
|
|
;; 'find_package(THEORA)', which in turns looks for libogg.
|
|
|
|
|
`(("libogg" ,libogg)))
|
2019-01-30 14:58:54 -05:00
|
|
|
|
(home-page "https://vtk.org/")
|
2017-03-15 16:05:24 -04:00
|
|
|
|
(synopsis "Libraries for 3D computer graphics")
|
|
|
|
|
(description
|
|
|
|
|
"The Visualization Toolkit (VTK) is a C++ library for 3D computer graphics,
|
|
|
|
|
image processing and visualization. It supports a wide variety of
|
|
|
|
|
visualization algorithms including: scalar, vector, tensor, texture, and
|
|
|
|
|
volumetric methods; and advanced modeling techniques such as: implicit
|
|
|
|
|
modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay
|
|
|
|
|
triangulation. VTK has an extensive information visualization framework, has
|
|
|
|
|
a suite of 3D interaction widgets, supports parallel processing, and
|
|
|
|
|
integrates with various databases on GUI toolkits such as Qt and Tk.")
|
|
|
|
|
(license license:bsd-3)))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
2021-04-14 09:48:06 -04:00
|
|
|
|
;; freecad needs an old version of VTK, because VTK's API changed from 8 to 9
|
|
|
|
|
(define-public vtk-8
|
2021-07-07 16:11:26 -04:00
|
|
|
|
(package
|
|
|
|
|
(name "vtk")
|
2021-04-14 09:48:06 -04:00
|
|
|
|
(version "8.2.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://vtk.org/files/release/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/VTK-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-07-07 16:11:26 -04:00
|
|
|
|
"1fspgp8k0myr6p2a6wkc21ldcswb4bvmb484m12mxgk1a9vxrhrl"))
|
|
|
|
|
(patches
|
|
|
|
|
(search-patches "vtk-8-fix-freetypetools-build-failure.patch"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each
|
|
|
|
|
(lambda (dir)
|
|
|
|
|
(delete-file-recursively
|
|
|
|
|
(string-append "ThirdParty/" dir "/vtk" dir)))
|
|
|
|
|
;; ogg, pugixml depended upon unconditionally
|
|
|
|
|
'("doubleconversion" "eigen" "expat" "freetype" "gl2ps"
|
|
|
|
|
"glew" "hdf5" "jpeg" "jsoncpp" "libproj" "libxml2" "lz4"
|
|
|
|
|
"netcdf" "png" "sqlite" "theora" "tiff" "zlib"))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:build-type "Release" ;Build without '-g' to save space.
|
|
|
|
|
#:configure-flags '(;"-DBUILD_TESTING:BOOL=TRUE"
|
|
|
|
|
;"-DVTK_MODULE_USE_EXTERNAL_vtkogg:BOOL=TRUE" ; not honored
|
|
|
|
|
"-DVTK_USE_SYSTEM_DOUBLECONVERSION:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_EIGEN:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_EXPAT:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_FREETYPE:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_GL2PS:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_GLEW:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_HDF5:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_JPEG:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_JSONCPP:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_LIBPROJ:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_LIBXML2:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_LZ4:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_NETCDF:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_PNG:BOOL=TRUE"
|
|
|
|
|
;"-DVTK_USE_SYSTEM_PUGIXML:BOOL=TRUE" ; breaks IO/CityGML
|
|
|
|
|
"-DVTK_USE_SYSTEM_SQLITE:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_THEORA:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_TIFF:BOOL=TRUE"
|
|
|
|
|
"-DVTK_USE_SYSTEM_ZLIB:BOOL=TRUE")
|
|
|
|
|
#:tests? #f)) ;XXX: test data not included
|
2021-04-14 09:48:06 -04:00
|
|
|
|
(inputs
|
2021-07-07 16:11:26 -04:00
|
|
|
|
`(("double-conversion" ,double-conversion)
|
|
|
|
|
("eigen" ,eigen)
|
|
|
|
|
("expat" ,expat)
|
|
|
|
|
("freetype" ,freetype)
|
|
|
|
|
("gl2ps" ,gl2ps)
|
|
|
|
|
("glew" ,glew)
|
|
|
|
|
("glu" ,glu)
|
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("jpeg" ,libjpeg-turbo)
|
|
|
|
|
("jsoncpp" ,jsoncpp)
|
|
|
|
|
;("libogg" ,libogg)
|
|
|
|
|
("libtheora" ,libtheora)
|
|
|
|
|
("libX11" ,libx11)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libXt" ,libxt)
|
|
|
|
|
("lz4" ,lz4)
|
|
|
|
|
("mesa" ,mesa)
|
|
|
|
|
("netcdf" ,netcdf)
|
|
|
|
|
("png" ,libpng)
|
|
|
|
|
("proj" ,proj.4)
|
|
|
|
|
;("pugixml" ,pugixml)
|
|
|
|
|
("sqlite" ,sqlite)
|
|
|
|
|
("tiff" ,libtiff)
|
|
|
|
|
("xorgproto" ,xorgproto)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "https://vtk.org/")
|
|
|
|
|
(synopsis "Libraries for 3D computer graphics")
|
|
|
|
|
(description
|
|
|
|
|
"The Visualization Toolkit (VTK) is a C++ library for 3D computer graphics,
|
|
|
|
|
image processing and visualization. It supports a wide variety of
|
|
|
|
|
visualization algorithms including: scalar, vector, tensor, texture, and
|
|
|
|
|
volumetric methods; and advanced modeling techniques such as: implicit
|
|
|
|
|
modeling, polygon reduction, mesh smoothing, cutting, contouring, and Delaunay
|
|
|
|
|
triangulation. VTK has an extensive information visualization framework, has
|
|
|
|
|
a suite of 3D interaction widgets, supports parallel processing, and
|
|
|
|
|
integrates with various databases on GUI toolkits such as Qt and Tk.")
|
|
|
|
|
(license license:bsd-3)))
|
2021-04-14 09:48:06 -04:00
|
|
|
|
|
2019-08-13 11:45:01 -04:00
|
|
|
|
;; itksnap needs an older variant of VTK.
|
|
|
|
|
(define-public vtk-6
|
|
|
|
|
(package (inherit vtk)
|
|
|
|
|
(version "6.3.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://vtk.org/files/release/"
|
|
|
|
|
(version-major+minor version)
|
|
|
|
|
"/VTK-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0pla1r5mvkgl4sl213gfdhzrypdgai0h3z5mfgm6p9jz9hsr794j"))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("jsoncpp" ,jsoncpp-for-tensorflow)
|
|
|
|
|
,@(alist-delete "jsoncpp" (package-inputs vtk))))))
|
|
|
|
|
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(define-public opencv
|
|
|
|
|
(package
|
|
|
|
|
(name "opencv")
|
2018-10-03 16:28:19 -04:00
|
|
|
|
(version "3.4.3")
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(source (origin
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/opencv/opencv")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2019-01-14 04:47:00 -05:00
|
|
|
|
"06bc61r8myym4s8im10brdjfg4wxkrvsbhhl7vr1msdan2xddzi3"))
|
2020-08-13 09:26:45 -04:00
|
|
|
|
(patches
|
|
|
|
|
(search-patches "opencv-fix-build-of-grfmt_jpeg2000.cpp.patch"))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
;; Remove external libraries. We have all available in Guix:
|
|
|
|
|
(delete-file-recursively "3rdparty")
|
|
|
|
|
|
|
|
|
|
;; Milky icon set is non-free:
|
|
|
|
|
(delete-file-recursively "modules/highgui/src/files_Qt/Milky")
|
|
|
|
|
|
|
|
|
|
;; Some jars found:
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
'("modules/java/test/pure_test/lib/junit-4.11.jar"
|
2019-01-14 04:47:00 -05:00
|
|
|
|
"samples/java/sbt/sbt/sbt-launch.jar"))
|
|
|
|
|
#t))))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "-DWITH_IPP=OFF"
|
|
|
|
|
"-DWITH_ITT=OFF"
|
2019-01-13 15:26:40 -05:00
|
|
|
|
"-DWITH_CAROTENE=OFF" ; only visible on arm/aarch64
|
2019-01-14 03:03:41 -05:00
|
|
|
|
"-DENABLE_PRECOMPILED_HEADERS=OFF"
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
|
|
|
|
;; CPU-Features:
|
|
|
|
|
;; See cmake/OpenCVCompilerOptimizations.cmake
|
|
|
|
|
;; (CPU_ALL_OPTIMIZATIONS) for a list of all optimizations
|
|
|
|
|
;; BASELINE is the minimum optimization all CPUs must support
|
|
|
|
|
;;
|
2019-01-15 06:18:00 -05:00
|
|
|
|
;; DISPATCH is the list of optional dispatches.
|
|
|
|
|
"-DCPU_BASELINE=SSE2"
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
2019-01-15 06:18:00 -05:00
|
|
|
|
,@(match (%current-system)
|
|
|
|
|
("x86_64-linux"
|
|
|
|
|
'("-DCPU_DISPATCH=NEON;VFPV3;FP16;SSE;SSE2;SSE3;SSSE3;SSE4_1;SSE4_2;POPCNT;AVX;FP16;AVX2;FMA3;AVX_512F;AVX512_SKX"
|
|
|
|
|
"-DCPU_DISPATCH_REQUIRE=SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2"))
|
|
|
|
|
("armhf-linux"
|
|
|
|
|
'("-DCPU_BASELINE_DISABLE=NEON")) ; causes build failures
|
|
|
|
|
("aarch64-linux"
|
|
|
|
|
'("-DCPU_BASELINE=NEON"
|
|
|
|
|
"-DCPU_DISPATCH=NEON;VFPV3;FP16"))
|
|
|
|
|
(_ '()))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
|
|
|
|
"-DBUILD_PERF_TESTS=OFF"
|
2019-01-13 15:26:40 -05:00
|
|
|
|
"-DBUILD_TESTS=ON"
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
2019-01-14 03:01:52 -05:00
|
|
|
|
(string-append "-DOPENCV_EXTRA_MODULES_PATH=" (getcwd)
|
2019-01-14 04:47:00 -05:00
|
|
|
|
"/opencv-contrib/modules")
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
|
|
|
|
;;Define test data:
|
2019-01-14 03:01:52 -05:00
|
|
|
|
(string-append "-DOPENCV_TEST_DATA_PATH=" (getcwd)
|
2019-01-14 04:47:00 -05:00
|
|
|
|
"/opencv-extra/testdata")
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
|
|
|
|
;; Is ON by default and would try to rebuild 3rd-party protobuf,
|
|
|
|
|
;; which we had removed, which would lead to an error:
|
|
|
|
|
"-DBUILD_PROTOBUF=OFF"
|
|
|
|
|
|
|
|
|
|
;; Rebuild protobuf files, because we have a slightly different
|
|
|
|
|
;; version than the included one. If we would not update, we
|
|
|
|
|
;; would get a compile error later:
|
|
|
|
|
"-DPROTOBUF_UPDATE_FILES=ON"
|
|
|
|
|
|
|
|
|
|
;; xfeatures2d disabled, because it downloads extra binaries from
|
|
|
|
|
;; https://github.com/opencv/opencv_3rdparty
|
|
|
|
|
;; defined in xfeatures2d/cmake/download_{vgg|bootdesc}.cmake
|
|
|
|
|
;; Cmp this bug entry:
|
|
|
|
|
;; https://github.com/opencv/opencv_contrib/issues/1131
|
|
|
|
|
"-DBUILD_opencv_xfeatures2d=OFF")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'disable-broken-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; These tests fails with:
|
|
|
|
|
;; vtkXOpenGLRenderWindow (0x723990): Could not find a decent config
|
|
|
|
|
;; I think we have no OpenGL support with the Xvfb.
|
|
|
|
|
(substitute* '("modules/viz/test/test_tutorial3.cpp"
|
|
|
|
|
"modules/viz/test/test_main.cpp"
|
|
|
|
|
"modules/viz/test/tests_simple.cpp"
|
|
|
|
|
"modules/viz/test/test_viz3d.cpp")
|
|
|
|
|
(("(TEST\\(Viz, )([a-z].*\\).*)" all pre post)
|
|
|
|
|
(string-append pre "DISABLED_" post)))
|
|
|
|
|
|
|
|
|
|
;; This one fails with "unknown file: Failure"
|
|
|
|
|
;; But I couldn't figure out which file was missing:
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(substitute* "../opencv-contrib/modules/face/test/test_face_align.cpp"
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(("(TEST\\(CV_Face_FacemarkKazemi, )(can_detect_landmarks\\).*)"
|
|
|
|
|
all pre post)
|
|
|
|
|
(string-append pre "DISABLED_" post)))
|
|
|
|
|
|
|
|
|
|
;; Failure reason: Bad accuracy
|
|
|
|
|
;; Incorrect count of accurate poses [2nd case]: 90.000000 / 94.000000
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(substitute* "../opencv-contrib/modules/rgbd/test/test_odometry.cpp"
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(("(TEST\\(RGBD_Odometry_Rgbd, )(algorithmic\\).*)" all pre post)
|
|
|
|
|
(string-append pre "DISABLED_" post)))
|
|
|
|
|
#t))
|
|
|
|
|
|
|
|
|
|
(add-after 'unpack 'unpack-submodule-sources
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(mkdir "../opencv-extra")
|
|
|
|
|
(mkdir "../opencv-contrib")
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(copy-recursively (assoc-ref inputs "opencv-extra")
|
|
|
|
|
"../opencv-extra")
|
2021-09-11 04:07:37 -04:00
|
|
|
|
(copy-recursively (assoc-ref inputs "opencv-contrib")
|
|
|
|
|
"../opencv-contrib")))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
|
|
|
|
|
(add-after 'set-paths 'add-ilmbase-include-path
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
;; OpenEXR propagates ilmbase, but its include files do not appear
|
|
|
|
|
;; in the CPATH, so we need to add "$ilmbase/include/OpenEXR/" to
|
|
|
|
|
;; the CPATH to satisfy the dependency on "ImathVec.h".
|
|
|
|
|
(setenv "CPATH"
|
2021-07-16 09:44:33 -04:00
|
|
|
|
(string-append
|
2021-09-11 04:07:37 -04:00
|
|
|
|
(string-drop-right
|
|
|
|
|
(search-input-file inputs "include/OpenEXR/ImathVec.h")
|
|
|
|
|
11)
|
2021-07-16 09:44:33 -04:00
|
|
|
|
":" (or (getenv "CPATH") "")))))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(add-before 'check 'start-xserver
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((xorg-server (assoc-ref inputs "xorg-server"))
|
|
|
|
|
(disp ":1"))
|
|
|
|
|
(setenv "HOME" (getcwd))
|
|
|
|
|
(setenv "DISPLAY" disp)
|
|
|
|
|
;; There must be a running X server and make check doesn't start one.
|
|
|
|
|
;; Therefore we must do it.
|
|
|
|
|
(zero? (system (format #f "~a/bin/Xvfb ~a &" xorg-server disp)))))))))
|
|
|
|
|
(native-inputs
|
2019-01-14 04:47:00 -05:00
|
|
|
|
`(("pkg-config" ,pkg-config)
|
gnu: Use the test-only Xorg variant for tests.
* gnu/packages/education.scm (gcompris-qt)[native-inputs]: Change XORG-SERVER
to XORG-SERVER-FOR-TESTS.
* gnu/packages/engineering.scm (pcb, qucs, openscad)[native-inputs]: Likewise.
* gnu/packages/gnome.scm (libbonoboui, d-feet, gspell, libdazzle, libhandy)[native-inputs]: Likewise.
* gnu/packages/gnupg.scm (parcimonie)[native-inputs]: Likewise.
* gnu/packages/graphics.scm (opensubdiv, rapicorn)[native-inputs]: Likewise.
* gnu/packages/gtk.scm (gtksourceview-2, gtksourceview)[native-inputs]: Likewise.
* gnu/packages/image-processing.scm (opencv)[native-inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kconfig, kcoreaddons, kwidgetsaddons,
kwindowsystem, kdeclarative)[native-inputs]: Likewise.
* gnu/packages/kde-plasma.scm (kscreenlocker)[native-inputs]: Likewise.
* gnu/packages/messaging.scm (gajim)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-seaborn)[native-inputs]: Likewise.
2019-11-27 16:19:13 -05:00
|
|
|
|
("xorg-server" ,xorg-server-for-tests) ; For running the tests
|
2018-02-16 14:31:37 -05:00
|
|
|
|
("opencv-extra"
|
|
|
|
|
,(origin
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/opencv/opencv_extra")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name "opencv_extra" version))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(sha256
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(base32 "08p5xnq8n1jw8svvz0fnirfg7q8dm3p4a5dl7527s5xj0f9qn7lp"))))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
("opencv-contrib"
|
|
|
|
|
,(origin
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/opencv/opencv_contrib")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name "opencv_contrib" version))
|
2019-01-14 04:32:02 -05:00
|
|
|
|
(patches (search-patches "opencv-rgbd-aarch64-test-fix.patch"))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(sha256
|
2019-01-14 04:47:00 -05:00
|
|
|
|
(base32 "1f334glf39nk42mpqq6j732h3ql2mpz89jd4mcl678s8n73nfjh2"))))))
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
(inputs `(("libjpeg" ,libjpeg-turbo)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("jasper" ,jasper)
|
|
|
|
|
;; ffmpeg 4.0 causes core dumps in tests.
|
|
|
|
|
("ffmpeg" ,ffmpeg-3.4)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("libgphoto2" ,libgphoto2)
|
|
|
|
|
("libwebp" ,libwebp)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("gtkglext" ,gtkglext)
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2018-02-16 14:31:37 -05:00
|
|
|
|
("ilmbase" ,ilmbase)
|
|
|
|
|
("gtk+" ,gtk+-2)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("protobuf" ,protobuf)
|
|
|
|
|
("vtk" ,vtk)
|
|
|
|
|
("python" ,python)))
|
2018-05-12 19:40:30 -04:00
|
|
|
|
;; These three CVEs are not a problem of OpenCV, see:
|
|
|
|
|
;; https://github.com/opencv/opencv/issues/10998
|
|
|
|
|
(properties '((lint-hidden-cve . ("CVE-2018-7712"
|
|
|
|
|
"CVE-2018-7713"
|
|
|
|
|
"CVE-2018-7714"))))
|
2018-02-16 14:31:37 -05:00
|
|
|
|
(synopsis "Computer vision library")
|
|
|
|
|
(description "OpenCV is a library aimed at
|
|
|
|
|
real-time computer vision, including several hundred computer
|
|
|
|
|
vision algorithms. It can be used to do things like:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item image and video input and output
|
|
|
|
|
@item image and video processing
|
|
|
|
|
@item displaying
|
|
|
|
|
@item feature recognition
|
|
|
|
|
@item segmentation
|
|
|
|
|
@item facial recognition
|
|
|
|
|
@item stereo vision
|
|
|
|
|
@item structure from motion
|
|
|
|
|
@item augmented reality
|
|
|
|
|
@item machine learning
|
|
|
|
|
@end itemize\n")
|
|
|
|
|
(home-page "https://opencv.org/")
|
|
|
|
|
(license license:bsd-3)))
|
2018-12-05 12:59:34 -05:00
|
|
|
|
|
|
|
|
|
(define-public vips
|
|
|
|
|
(package
|
|
|
|
|
(name "vips")
|
2021-03-25 16:07:39 -04:00
|
|
|
|
(version "8.10.6")
|
2019-03-18 09:44:11 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://github.com/libvips/libvips/releases/download/v"
|
|
|
|
|
version "/vips-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
2021-03-25 16:07:39 -04:00
|
|
|
|
(base32 "0vjsh3i0861f6h9as3bch956cidz824zz499pvhjs3lfjn6hhs14"))))
|
2018-12-05 12:59:34 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2020-12-31 07:58:15 -05:00
|
|
|
|
`(("gobject-introspection" ,gobject-introspection)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
2018-12-05 12:59:34 -05:00
|
|
|
|
(inputs
|
2020-12-31 07:58:15 -05:00
|
|
|
|
`(("expat" ,expat)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("giflib" ,giflib)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("imagemagick" ,imagemagick)
|
|
|
|
|
("lcms" ,lcms)
|
|
|
|
|
("libexif" ,libexif)
|
|
|
|
|
("libgsf" ,libgsf)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("librsvg" ,librsvg)
|
|
|
|
|
("libtiff" ,libtiff)
|
2020-12-31 07:58:15 -05:00
|
|
|
|
("libxml2" ,libxml2)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
("libwebp" ,libwebp)
|
2020-12-31 07:58:15 -05:00
|
|
|
|
("matio" ,matio)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
("niftilib" ,niftilib)
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2018-12-05 12:59:34 -05:00
|
|
|
|
("orc" ,orc)
|
2020-12-31 07:58:15 -05:00
|
|
|
|
("pango" ,pango)
|
|
|
|
|
("poppler" ,poppler)))
|
2018-12-05 12:59:34 -05:00
|
|
|
|
(home-page "https://libvips.github.io/libvips/")
|
2019-03-18 09:50:49 -04:00
|
|
|
|
(synopsis "Multithreaded image processing system with low memory needs")
|
2018-12-23 15:27:19 -05:00
|
|
|
|
(description
|
2019-03-18 09:50:49 -04:00
|
|
|
|
"VIPS is a demand-driven, horizontally threaded image processing library.
|
|
|
|
|
It's particularly good at processing large images, working with colour,
|
|
|
|
|
scientific analysis, and general research & development.
|
|
|
|
|
|
|
|
|
|
Compared to most image processing libraries VIPS needs little RAM and runs
|
|
|
|
|
quickly, especially on machines with more than one CPU core. This is primarily
|
|
|
|
|
due to its architecture which automatically parallelises the image workflows.")
|
2018-12-05 12:59:34 -05:00
|
|
|
|
(license license:lgpl2.1+)))
|
2018-12-05 13:03:13 -05:00
|
|
|
|
|
2020-06-22 18:36:05 -04:00
|
|
|
|
(define-public gmic
|
|
|
|
|
(package
|
|
|
|
|
(name "gmic")
|
2021-04-10 14:21:43 -04:00
|
|
|
|
(version "2.9.7")
|
2020-06-22 18:36:05 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://gmic.eu/files/source/gmic_"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
2021-04-10 14:21:43 -04:00
|
|
|
|
(base32 "05kzaplsl5qvxs7v6g73q0lq8dii8g6v77ap609188m7gr43f9cl"))))
|
2020-06-22 18:36:05 -04:00
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
2021-03-04 23:53:36 -05:00
|
|
|
|
`(#:tests? #f ;there are no tests
|
|
|
|
|
#:configure-flags '("-DBUILD_LIB_STATIC=OFF"
|
|
|
|
|
"-DENABLE_DYNAMIC_LINKING=ON"
|
|
|
|
|
"-DENABLE_LTO=ON")
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'set-LDFLAGS
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(setenv "LDFLAGS"
|
|
|
|
|
(string-append
|
|
|
|
|
"-Wl,-rpath="
|
|
|
|
|
(assoc-ref outputs "out") "/lib")))))))
|
2020-06-22 18:36:05 -04:00
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("curl" ,curl)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("graphicsmagick" ,graphicsmagick)
|
|
|
|
|
("libjpeg-turbo" ,libjpeg-turbo)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("libx11" ,libx11)
|
|
|
|
|
;;("opencv" ,opencv) ;OpenCV is currently broken in the CI
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2020-06-22 18:36:05 -04:00
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "https://gmic.eu/")
|
|
|
|
|
(synopsis "Full-featured framework for digital image processing")
|
|
|
|
|
(description "G'MIC is a full-featured framework for digital image
|
|
|
|
|
processing. It provides several user interfaces to convert / manipulate
|
|
|
|
|
/ filter / visualize generic image datasets, ranging from 1D scalar
|
|
|
|
|
signals to 3D+t sequences of multi-spectral volumetric images, hence
|
|
|
|
|
including 2D color images.")
|
|
|
|
|
;; Dual-licensed, either license applies.
|
|
|
|
|
(license (list license:cecill license:cecill-c))))
|
|
|
|
|
|
2021-03-05 00:14:16 -05:00
|
|
|
|
(define-public gmic-qt
|
|
|
|
|
(package
|
|
|
|
|
(inherit gmic)
|
|
|
|
|
(name "gmic-qt")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments gmic)
|
|
|
|
|
((#:configure-flags _)
|
|
|
|
|
`(list "-DGMIC_QT_HOST=none" "-DENABLE_DYNAMIC_LINKING=ON"
|
|
|
|
|
(string-append "-DGMIC_LIB_PATH="
|
|
|
|
|
(assoc-ref %build-inputs "gmic") "/lib")))
|
|
|
|
|
((#:phases phases)
|
|
|
|
|
`(modify-phases ,phases
|
|
|
|
|
(add-after 'unpack 'qt-chdir
|
|
|
|
|
(lambda _ (chdir "gmic-qt") #t))))))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("qttools" ,qttools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("gmic" ,gmic)
|
2021-04-09 21:53:32 -04:00
|
|
|
|
("qtbase" ,qtbase-5)
|
2021-03-05 00:14:16 -05:00
|
|
|
|
,@(package-inputs gmic)))
|
|
|
|
|
(synopsis "Qt frontend for the G'MIC image processing framework")
|
|
|
|
|
(license license:gpl3+)))
|
|
|
|
|
|
2021-03-05 00:43:33 -05:00
|
|
|
|
(define-public gmic-qt-krita
|
|
|
|
|
(package
|
|
|
|
|
(inherit gmic-qt)
|
|
|
|
|
(name "gmic-qt-krita")
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments gmic-qt)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
'(list "-DGMIC_QT_HOST=krita" "-DENABLE_DYNAMIC_LINKING=ON"
|
|
|
|
|
(string-append "-DGMIC_LIB_PATH="
|
|
|
|
|
(assoc-ref %build-inputs "gmic") "/lib")))))
|
|
|
|
|
(synopsis "Krita plugin for the G'MIC image processing framework")))
|
|
|
|
|
|
2021-07-24 04:51:56 -04:00
|
|
|
|
(define-public gmic-qt-gimp
|
|
|
|
|
(package
|
|
|
|
|
(inherit gmic-qt)
|
|
|
|
|
(name "gmic-qt-gimp")
|
|
|
|
|
(inputs
|
|
|
|
|
;; GIMP and its dependencies.
|
|
|
|
|
`(("gimp" ,gimp)
|
|
|
|
|
("gdk-pixbuf" ,gdk-pixbuf)
|
|
|
|
|
("cairo" ,cairo)
|
|
|
|
|
("gegl" ,gegl)
|
|
|
|
|
,@(package-inputs gmic-qt)))
|
|
|
|
|
(arguments
|
|
|
|
|
(substitute-keyword-arguments (package-arguments gmic-qt)
|
|
|
|
|
((#:configure-flags flags)
|
|
|
|
|
'(list "-DGMIC_QT_HOST=gimp" "-DENABLE_DYNAMIC_LINKING=ON"
|
|
|
|
|
(string-append "-DGMIC_LIB_PATH="
|
|
|
|
|
(assoc-ref %build-inputs "gmic") "/lib")))))
|
|
|
|
|
(synopsis "GIMP plugin for the G'MIC image processing framework")))
|
|
|
|
|
|
2018-12-05 13:03:13 -05:00
|
|
|
|
(define-public nip2
|
|
|
|
|
(package
|
|
|
|
|
(name "nip2")
|
2019-02-19 09:12:50 -05:00
|
|
|
|
(version "8.7.1")
|
2018-12-05 13:03:13 -05:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/libvips/nip2/releases/download/v"
|
|
|
|
|
version "/nip2-" version ".tar.gz" ))
|
|
|
|
|
(sha256
|
2019-02-19 09:12:50 -05:00
|
|
|
|
(base32 "0l7n427njif53npqn02gfjjly8y3khbrkzqxp10j5vp9h97psgiw"))))
|
2018-12-05 13:03:13 -05:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
2019-02-19 09:12:50 -05:00
|
|
|
|
;; test_conv.ws keep failing so disabling for now.
|
2018-12-05 13:03:13 -05:00
|
|
|
|
(add-after 'unpack 'disable-test-conv
|
|
|
|
|
(lambda _
|
|
|
|
|
(delete-file "test/workspaces/test_conv.ws")
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'check 'set-home
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "HOME" "/tmp") #t)))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("vips" ,vips)
|
|
|
|
|
("glib" ,glib)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("gtk+-2" ,gtk+-2)
|
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
|
("libexif" ,libexif)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo) ;required by vips.pc
|
2018-12-05 13:03:13 -05:00
|
|
|
|
("librsvg" ,librsvg)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("libgsf" ,libgsf)
|
|
|
|
|
("imagemagick" ,imagemagick)
|
|
|
|
|
("orc" ,orc)
|
|
|
|
|
("matio" ,matio)
|
|
|
|
|
("lcms" ,lcms)
|
|
|
|
|
("libwebp" ,libwebp)
|
gnu: Rename openexr to openexr-2.
This is done so the OpenEXR package can be upgraded to version 3 in a
later commit.
* gnu/packages/graphics.scm (openexr): Rename to ...
(openexr-2): ... new variable.
(blender, blender-2.79, openimageio, povray)[inputs]: Adjust accordingly.
(ctl)[propagated-inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[propagated-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-bad)[inputs]: Likewise.
* gnu/packages/image-processing.scm (mia, opencolorio, opencv, vips, gmic,
nip2)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (freeimage, vigra, devil)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (kimageformats)[inputs]: Likewise.
* gnu/packages/kde.scm (krita)[inputs]: Likewise.
* gnu/packages/photo.scm (enblend-enfuse, darktable, hugin)[inputs]: Likewise.
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-10-23 08:18:00 -04:00
|
|
|
|
("openexr" ,openexr-2)
|
2018-12-05 13:03:13 -05:00
|
|
|
|
("poppler" ,poppler)
|
|
|
|
|
("gsl" ,gsl)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("flex" ,flex)
|
|
|
|
|
("bison" ,bison)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(home-page "https://github.com/libvips/nip2")
|
|
|
|
|
(synopsis "Spreadsheet-like GUI for libvips")
|
|
|
|
|
(description "This package provide a graphical user interface (GUI) for
|
|
|
|
|
the VIPS image processing library. It's a little like a spreadsheet: you
|
|
|
|
|
create a set of formula connecting your objects together, and on a change nip2
|
|
|
|
|
recalculates.")
|
|
|
|
|
(license license:gpl2+)))
|
2019-08-13 11:46:22 -04:00
|
|
|
|
|
|
|
|
|
(define-public vxl
|
|
|
|
|
(package
|
|
|
|
|
(name "vxl")
|
|
|
|
|
(version "2.0.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/vxl/vxl")
|
2019-08-13 11:46:22 -04:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0949hw57szq8943f1whwqaz591xjmb19kj803hcv74hdai2b0ycg"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
;; TODO: vxl includes an old version of dcmtk. It won't build with
|
|
|
|
|
;; version 3.6.x.
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
'("v3p/bzlib/"
|
|
|
|
|
"v3p/geotiff/"
|
|
|
|
|
"v3p/jpeg/"
|
|
|
|
|
"v3p/png/"
|
|
|
|
|
"v3p/tiff/"
|
|
|
|
|
"v3p/zlib/"))
|
|
|
|
|
(substitute* "v3p/CMakeLists.txt"
|
|
|
|
|
(("add_subdirectory\\((tiff|png|jpeg|zlib|bzlib|geotiff)\\)")
|
|
|
|
|
""))
|
|
|
|
|
#t))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libgeotiff" ,libgeotiff)
|
|
|
|
|
("libtiff" ,libtiff)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
2019-08-13 11:46:22 -04:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(home-page "https://github.com/vxl/vxl/")
|
|
|
|
|
(synopsis "Collection of C++ libraries for computer vision")
|
|
|
|
|
(description "VXL (the Vision-something-Libraries) is a collection of C++
|
|
|
|
|
libraries designed for computer vision research and implementation.")
|
|
|
|
|
(license license:bsd-3)))
|
2019-08-13 11:47:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public vxl-1
|
|
|
|
|
(package (inherit vxl)
|
|
|
|
|
(name "vxl")
|
|
|
|
|
(version "1.18.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/vxl/vxl")
|
2019-08-13 11:47:03 -04:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1g4mr2cc58jwm0vasscbd4y5380wj3ahkvq121z4gs83fhavvxgz"))
|
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(begin
|
|
|
|
|
(for-each delete-file-recursively
|
|
|
|
|
'("v3p/bzlib/"
|
|
|
|
|
"v3p/geotiff/"
|
|
|
|
|
"v3p/png/"
|
|
|
|
|
"v3p/tiff/"
|
|
|
|
|
"v3p/zlib/"))
|
|
|
|
|
(substitute* "v3p/CMakeLists.txt"
|
|
|
|
|
(("add_subdirectory\\((tiff|png|jpeg|zlib|bzlib|geotiff)\\)")
|
|
|
|
|
""))
|
|
|
|
|
#t))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
;; Needed for itk-snap
|
|
|
|
|
(list "-DVNL_CONFIG_LEGACY_METHODS=ON")))))
|
2019-08-13 12:55:46 -04:00
|
|
|
|
|
|
|
|
|
(define-public insight-toolkit
|
|
|
|
|
(package
|
|
|
|
|
(name "insight-toolkit")
|
|
|
|
|
(version "5.0.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/InsightSoftwareConsortium/ITK/"
|
|
|
|
|
"releases/download/v" version "/InsightToolkit-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0bs63mk4q8jmx38f031jy5w5n9yy5ng9x8ijwinvjyvas8cichqi"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; tests require network access and external data
|
|
|
|
|
#:configure-flags
|
|
|
|
|
'("-DITK_USE_GPU=ON"
|
|
|
|
|
"-DITK_USE_SYSTEM_LIBRARIES=ON"
|
|
|
|
|
"-DITK_USE_SYSTEM_GOOGLETEST=ON"
|
|
|
|
|
"-DITK_BUILD_SHARED=ON"
|
|
|
|
|
;; This prevents "GTest::GTest" from being added to the ITK_LIBRARIES
|
|
|
|
|
;; variable in the installed CMake files. This is necessary as other
|
|
|
|
|
;; packages using insight-toolkit could not be configured otherwise.
|
|
|
|
|
"-DGTEST_ROOT=gtest")
|
2021-06-01 05:12:08 -04:00
|
|
|
|
|
2019-08-13 12:55:46 -04:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'do-not-tune
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "CMake/ITKSetStandardCompilerFlags.cmake"
|
|
|
|
|
(("-mute=native") ""))
|
|
|
|
|
#t)))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("eigen" ,eigen)
|
|
|
|
|
("expat" ,expat)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("fftwf" ,fftwf)
|
|
|
|
|
("hdf5" ,hdf5)
|
gnu: Replace uses of 'libjpeg' with 'libjpeg-turbo'.
* gnu/packages/abiword.scm (abiword)[inputs]: Change from LIBJPEG to
LIBJPEG-TURBO.
* gnu/packages/admin.scm (testdisk)[inputs]: Likewise.
* gnu/packages/algebra.scm (giac)[inputs]: Likewise.
* gnu/packages/animation.scm (synfig)[inputs]: Likewise.
* gnu/packages/astronomy.scm (gnuastro, celestia)[inputs]: Likewise.
* gnu/packages/cdrom.scm (dvdstyler)[inputs]: Likewise.
* gnu/packages/cran.scm (r-jpeg, r-tiff, r-readbitmap)[inputs]: Likewise.
* gnu/packages/cups.scm (cups-filters, hplip)[inputs]: Likewise.
* gnu/packages/display-managers.scm (slim)[inputs]: Likewise.
* gnu/packages/ebook.scm (fbreader)[inputs]: Likewise.
* gnu/packages/emacs.scm (emacs)[inputs]: Likewise.
* gnu/packages/enlightenment.scm (efl)[propagated-inputs]: Likewise.
* gnu/packages/fltk.scm (fltk, ntk)[inputs]: Likewise.
* gnu/packages/fontutils.scm (fontforge)[inputs]: Likewise.
* gnu/packages/freedesktop.scm (weston)[inputs]: Likewise.
* gnu/packages/game-development.scm (sfml, allegro, aseprite, python-pygame,
eureka, ioquake3)[inputs]: Likewise.
* gnu/packages/games.scm (adanaxisgpl, freedroidrpg, irrlicht, minetest,
fizmo, supertuxkart, gzdoom, xmoto, xonotic)[inputs]: Likewise.
* gnu/packages/gd.scm (gd, perl-gd)[inputs]: Likewise.
* gnu/packages/ghostscript.scm (lcms)[inputs]: Likewise.
(ghostscript)[inputs, native-inputs]: Likewise.
* gnu/packages/gimp.scm (gegl, gimp)[inputs]: Likewise.
* gnu/packages/gnome.scm (libgnomeui, eog, tracker-miners, gthumb)[inputs]: Likewise.
* gnu/packages/gnunet.scm (libextractor)[inputs]: Likewise.
* gnu/packages/gnustep.scm (windowmaker)[inputs]: Likewise.
* gnu/packages/graphics.scm (blender, blender-2.79, openimageio,
openscenegraph, openscenegraph-3.4, povray, fgallery)[inputs]: Likewise.
* gnu/packages/graphviz.scm (graphviz)[inputs]: Likewise.
* gnu/packages/gstreamer.scm (gst-plugins-good)[inputs]: Likewise.
* gnu/packages/gtk.scm (gdk-pixbuf)[inputs]: Likewise.
* gnu/packages/image-processing.scm (dcmtk, mia, vtk, opencv, vips, nip2, vxl,
insight-toolkit)[inputs]: Likewise.
* gnu/packages/image-viewers.scm (gpicview, luminance-hdr)[inputs]: Likewise.
* gnu/packages/image.scm (jpegoptim, libtiff, leptonica, imlib2, freeimage,
vigra, libwebp, libmng, jasper, steghide, jp2a)[inputs]: Likewise.
* gnu/packages/imagemagick.scm (imagemagick, graphicsmagick)[inputs]: Likewise.
* gnu/packages/java.scm (icedtea-6, icedtea-7, openjdk9, openjdk11,
openjdk12)[inputs]: Likewise.
* gnu/packages/kde-frameworks.scm (khtml)[inputs]: Likewise.
* gnu/packages/kodi.scm (kodi)[inputs]: Likewise.
* gnu/packages/machine-learning.scm (dlib, tensorflow)[inputs]: Likewise.
* gnu/packages/mate.scm (atril, eom)[inputs]: Likewise.
* gnu/packages/maths.scm (hdf4, hdf-java, hdf-eos2, netcdf)[inputs]: Likewise.
* gnu/packages/netpbm.scm (netpbm)[inputs]: Likewise.
* gnu/packages/pdf.scm (zathura-pdf-mupdf, podofo, mupdf, fbida)[inputs]: Likewise.
* gnu/packages/photo.scm (libraw, libpano13, enblend-enfuse, darktable, hugin,
rawtherapee)[inputs]: Likewise.
* gnu/packages/prolog.scm (swi-prolog)[native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-hdf4, python-pillow)[inputs]: Likewise.
* gnu/packages/qt.scm (qtbase, qtwebkit)[inputs]: Likewise.
* gnu/packages/rdesktop.scm (freerdp)[inputs]: Likewise.
* gnu/packages/scanner.scm (sane-backends, xsane)[inputs]: Likewise.
* gnu/packages/scheme.scm (racket)[inputs]: Likewise.
* gnu/packages/scribus.scm (scribus)[inputs]: Likewise.
* gnu/packages/sdl.scm (sdl-image)[propagated-inputs]: Likewise.
(guile-sdl)[native-inputs]: Likewise.
* gnu/packages/spice.scm (spice-gtk)[inputs]: Likewise.
* gnu/packages/statistics.scm (r-with-tests)[inputs]: Likewise.
* gnu/packages/tcl.scm (perl-tk)[inputs]: Likewise.
* gnu/packages/upnp.scm (readymedia)[inputs]: Likewise.
* gnu/packages/video.scm (mplayer, mpv, v4l-utils, motion)[inputs]: Likewise.
* gnu/packages/web-browsers.scm (dillo, links)[inputs]: Likewise.
* gnu/packages/web.scm (netsurf)[inputs]: Likewise.
* gnu/packages/webkit.scm (webkitgtk)[inputs]: Likewise.
* gnu/packages/wine.scm (wine)[inputs]: Likewise.
* gnu/packages/wv.scm (wv)[inputs]: Likewise.
* gnu/packages/wxwidgets.scm (wxwidgets, wxwidgets-2)[inputs]: Likewise.
* gnu/packages/xdisorg.scm (xscreensaver)[inputs]: Likewise.
* gnu/packages/xfce.scm (tumbler)[inputs]: Likewise.
* gnu/packages/xfig.scm (xfig, transfig)[inputs]: Likewise.
* gnu/packages/xorg.scm (xpra)[inputs]: Likewise.
2020-01-17 13:27:01 -05:00
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
2019-08-13 12:55:46 -04:00
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
|
("mesa" ,mesa-opencl)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("python" ,python)
|
|
|
|
|
("tbb" ,tbb)
|
|
|
|
|
("vxl" ,vxl-1)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("googletest" ,googletest)
|
|
|
|
|
("pkg-config" ,pkg-config)))
|
|
|
|
|
(home-page "https://github.com/InsightSoftwareConsortium/ITK/")
|
|
|
|
|
(synopsis "Scientific image processing, segmentation and registration")
|
|
|
|
|
(description "The Insight Toolkit (ITK) is a toolkit for N-dimensional
|
|
|
|
|
scientific image processing, segmentation, and registration. Segmentation is
|
|
|
|
|
the process of identifying and classifying data found in a digitally sampled
|
|
|
|
|
representation. Typically the sampled representation is an image acquired
|
|
|
|
|
from such medical instrumentation as CT or MRI scanners. Registration is the
|
|
|
|
|
task of aligning or developing correspondences between data. For example, in
|
|
|
|
|
the medical environment, a CT scan may be aligned with a MRI scan in order to
|
|
|
|
|
combine the information contained in both.")
|
|
|
|
|
(license license:asl2.0)))
|
2019-08-13 12:55:57 -04:00
|
|
|
|
|
|
|
|
|
(define-public insight-toolkit-4
|
|
|
|
|
(package (inherit insight-toolkit)
|
|
|
|
|
(version "4.13.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://github.com/InsightSoftwareConsortium/ITK/"
|
|
|
|
|
"releases/download/v" version "/InsightToolkit-"
|
|
|
|
|
version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "19cgfpd63gqrvc3m27m394gy2d7w79g5y6lvznb5qqr49lihbgns"))))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; tests require network access and external data
|
|
|
|
|
#:configure-flags
|
|
|
|
|
'("-DITKV3_COMPATIBILITY=ON" ; needed for itk-snap
|
|
|
|
|
"-DITK_USE_GPU=ON"
|
|
|
|
|
"-DITK_USE_SYSTEM_LIBRARIES=ON"
|
|
|
|
|
"-DITK_USE_SYSTEM_GOOGLETEST=ON"
|
|
|
|
|
"-DITK_USE_SYSTEM_VXL=ON")))))
|
2019-08-13 12:56:03 -04:00
|
|
|
|
|
|
|
|
|
(define-public insight-toolkit-4.12
|
|
|
|
|
(package (inherit insight-toolkit-4)
|
|
|
|
|
(version "4.12.2")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "mirror://sourceforge/itk/itk/4.12/"
|
|
|
|
|
"InsightToolkit-" version ".tar.xz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1qw9mxbh083siljygahl4gdfv91xvfd8hfl7ghwii19f60xrvn2w"))))))
|
2019-08-15 03:26:55 -04:00
|
|
|
|
|
|
|
|
|
(define-public itk-snap
|
|
|
|
|
(package
|
|
|
|
|
(name "itk-snap")
|
|
|
|
|
(version "3.8.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://git.code.sf.net/p/itk-snap/src")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "15i5ixpryfrbf3vrrb5rici8fb585f25k0v1ljds16bp1f1msr4q"))))
|
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "-DSNAP_VERSION_GIT_SHA1=release"
|
|
|
|
|
"-DSNAP_VERSION_GIT_BRANCH=release"
|
|
|
|
|
"-DSNAP_VERSION_GIT_TIMESTAMP=0"
|
|
|
|
|
"-DSNAP_PACKAGE_QT_PLUGINS=OFF"
|
gnu: Remove more GCC < 7 workarounds.
* gnu/packages/abiword.scm (abiword)[arguments]: Do not pass "-std=c++11" to
the GCC command line.
* gnu/packages/aidc.scm (zbar)[arguments]: Likewise.
* gnu/packages/android.scm (android-libbase, android-libcutils,
android-libziparchive, fastboot)[arguments]: Likewise.
* gnu/packages/audio.scm (azr3, guitarix, suil)[arguments]: Likewise.
* gnu/packages/bioinformatics.scm (bless)[arguments]: Likewise.
* gnu/packages/bittorrent.scm (libtorrent-rasterbar)[arguments]: Likewise.
* gnu/packages/code.scm (rtags)[arguments]: Likewise.
* gnu/packages/coq.scm (coq-gappa)[arguments]: Likewise.
* gnu/packages/emulators.scm (dolphin-emu)[arguments]: Likewise.
* gnu/packages/engineering.scm (xyce-serial, xyce-parallel)[arguments]: Likewise.
* gnu/packages/gnupg.scm (pinentry-qt)[arguments]: Likewise.
* gnu/packages/gobby.scm (libnet6, obby)[arguments]: Likewise.
* gnu/packages/graph.scm (python-faiss)[arguments]: Likewise.
* gnu/packages/graphics.scm (povray)[arguments]: Likewise.
* gnu/packages/image-processing.scm (opencv, itk-snap)[arguments]: Likewise.
* gnu/packages/image.scm (freeimage)[arguments]: Likewise.
* gnu/packages/kodi.scm (crossguid)[arguments]: Likewise.
* gnu/packages/music.scm (amsynth, qmidiarp, qmidiroute, seq24)[arguments]: Likewise.
* gnu/packages/pdf.scm (python-poppler-qt5)[arguments]: Likewise.
* gnu/packages/sagemath.scm (lcalc)[arguments]: Likewise.
* gnu/packages/video.scm (vlc, mlt, v4l-utils)[arguments]: Likewise.
2019-10-20 07:31:19 -04:00
|
|
|
|
"-DCMAKE_POSITION_INDEPENDENT_CODE=ON")
|
2019-08-15 03:26:55 -04:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; During the installation phase all libraries provided by all
|
|
|
|
|
;; dependencies will be copied to the lib directory. That's insane,
|
|
|
|
|
;; so we disable this.
|
|
|
|
|
(add-after 'unpack 'do-not-copy-dependencies
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
|
(("install_qt5_executable\
|
|
|
|
|
\\(\\$\\{SNAP_MAIN_INSTALL_DIR\\}/\\$\\{SNAP_EXE\\}\\)")
|
|
|
|
|
""))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'disable-gui-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; The GUI tests just time out.
|
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
|
((" (Workspace|DiffSpace|ProbeIntensity|RegionCompetition\
|
|
|
|
|
|RandomForest|RandomForestBailOut)")
|
|
|
|
|
""))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'make-reproducible
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "CMakeLists.txt"
|
|
|
|
|
(("TODAY\\(SNAP_VERSION_COMPILE_DATE\\)")
|
|
|
|
|
"SET(SNAP_VERSION_COMPILE_DATE \"(removed for reproducibility)\")"))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'prepare-submodules
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(rmdir "Submodules/c3d")
|
|
|
|
|
(copy-recursively (assoc-ref inputs "c3d-src")
|
|
|
|
|
"Submodules/c3d")
|
|
|
|
|
(substitute* '("Submodules/c3d/adapters/BiasFieldCorrectionN4.cxx"
|
|
|
|
|
"Submodules/c3d/adapters/ApplyMetric.cxx")
|
|
|
|
|
(("vcl_") "std::"))
|
|
|
|
|
(rmdir "Submodules/greedy")
|
|
|
|
|
(symlink (assoc-ref inputs "greedy-src")
|
|
|
|
|
"Submodules/greedy")
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'unpack 'fix-includes
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "GUI/Model/RegistrationModel.cxx"
|
|
|
|
|
(("<vnl_symmetric_eigensystem.h>")
|
|
|
|
|
"<vnl/algo/vnl_symmetric_eigensystem.h>"))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'check 'prepare-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Needed by at least one test.
|
|
|
|
|
(setenv "HOME" "/tmp")
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'wrap-executable
|
|
|
|
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
|
|
|
(let ((out (assoc-ref outputs "out")))
|
|
|
|
|
(wrap-program (string-append out "/bin/itksnap")
|
|
|
|
|
`("QT_PLUGIN_PATH" ":" prefix
|
|
|
|
|
,(map (lambda (label)
|
|
|
|
|
(string-append (assoc-ref inputs label)
|
|
|
|
|
"/lib/qt5/plugins"))
|
|
|
|
|
'("qtbase" "qtdeclarative"))))
|
|
|
|
|
#t))))))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("curl" ,curl)
|
|
|
|
|
("fftw" ,fftw)
|
|
|
|
|
("fftwf" ,fftwf)
|
|
|
|
|
("glu" ,glu)
|
|
|
|
|
("hdf5" ,hdf5)
|
|
|
|
|
("mesa" ,mesa-opencl)
|
|
|
|
|
;; This package does not build with either insight-toolkit 5.0.0 and
|
|
|
|
|
;; not with 4.13. It really needs to be 4.12.
|
|
|
|
|
("itk" ,insight-toolkit-4.12)
|
|
|
|
|
("vtk" ,vtk-6)
|
2021-04-09 21:53:32 -04:00
|
|
|
|
("qtbase" ,qtbase-5)
|
2019-08-15 03:26:55 -04:00
|
|
|
|
("qtdeclarative" ,qtdeclarative)
|
|
|
|
|
("vxl" ,vxl-1)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("googletest" ,googletest)
|
2020-04-05 17:31:55 -04:00
|
|
|
|
("qttools" ,qttools)
|
2019-08-15 03:26:55 -04:00
|
|
|
|
("pkg-config" ,pkg-config)
|
|
|
|
|
("c3d-src"
|
|
|
|
|
,(let* ((commit "f521358db26e00002c911cc47bf463b043942ad3")
|
|
|
|
|
(revision "1")
|
|
|
|
|
(version (git-version "0" revision commit)))
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/pyushkevich/c3d")
|
2019-08-15 03:26:55 -04:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name "c3d" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kyv3rxrxwr8c3sa9zv01lsnhk95b27gx1s870k3yi8qp52h7bx3")))))
|
|
|
|
|
;; We are using an arbitrary commit from 2017 because the latest
|
|
|
|
|
;; version breaks the build...
|
|
|
|
|
("greedy-src"
|
|
|
|
|
,(let* ((commit "97e340f7e8e66597599144947775e6039e79a0d3")
|
|
|
|
|
(revision "1")
|
|
|
|
|
(version (git-version "0" revision commit)))
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 16:53:28 -04:00
|
|
|
|
(url "https://github.com/pyushkevich/greedy")
|
2019-08-15 03:26:55 -04:00
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name "greedy" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0k5bc9za4jrc8z9dj08z1rkcp5xf0gnd1d2jmi1w9ny4vxh2q2ab")))))))
|
|
|
|
|
(home-page "https://sourceforge.net/p/itk-snap/")
|
|
|
|
|
(synopsis "Medical image segmentation")
|
|
|
|
|
(description "ITK-SNAP is a tool for segmenting anatomical structures in
|
|
|
|
|
medical images. It provides an automatic active contour segmentation
|
|
|
|
|
pipeline, along with supporting a manual segmentation toolbox. ITK-SNAP has a
|
|
|
|
|
full-featured UI aimed at clinical researchers.")
|
|
|
|
|
;; This includes the submodules greedy and c3d.
|
|
|
|
|
(license license:gpl3+)))
|
2020-08-06 06:02:20 -04:00
|
|
|
|
|
|
|
|
|
(define-public metapixel
|
|
|
|
|
;; Follow stable branch.
|
|
|
|
|
(let ((commit "98ee9daa093b6c334941242e63f90b1c2876eb4f"))
|
|
|
|
|
(package
|
|
|
|
|
(name "metapixel")
|
|
|
|
|
(version (git-version "1.0.2" "1" commit))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/schani/metapixel")
|
|
|
|
|
(commit commit)
|
|
|
|
|
;; TODO: Package rwimg and lispreader?
|
|
|
|
|
(recursive? #t)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "0r7n3a6bvcxkbpda4mwmrpicii09iql5z69nkjqygkwxw7ny3309"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("giflib" ,giflib)
|
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("perl" ,perl)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
|
("docbook-xml" ,docbook-xml)
|
|
|
|
|
("docbook-xsl" ,docbook-xsl)
|
|
|
|
|
("xsltproc" ,libxslt)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:tests? #f ; No tests.
|
|
|
|
|
#:make-flags (list
|
|
|
|
|
(string-append "PREFIX=" (assoc-ref %outputs "out"))
|
|
|
|
|
(string-append "MANPAGE_XSL="
|
|
|
|
|
(assoc-ref %build-inputs "docbook-xsl")
|
|
|
|
|
"/xml/xsl/docbook-xsl-*/manpages/docbook.xsl"))
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
(add-before 'install 'make-local-docbook-xml
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(substitute* "metapixel.xml"
|
|
|
|
|
(("http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd")
|
|
|
|
|
(string-append (assoc-ref inputs "docbook-xml")
|
|
|
|
|
"/xml/dtd/docbook/docbookx.dtd")))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'install 'fix-directory-creation
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(mkdir-p (string-append (assoc-ref outputs "out") "/share/man/man1"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://www.complang.tuwien.ac.at/schani/metapixel/")
|
|
|
|
|
(synopsis "Photomosaics generator")
|
|
|
|
|
(description "Metapixel is a program for generating photomosaics. It can
|
|
|
|
|
generate classical photomosaics, in which the source image is viewed as a
|
|
|
|
|
matrix of equally sized rectangles for each of which a matching image is
|
2020-09-19 01:59:47 -04:00
|
|
|
|
substituted, as well as collage-style photomosaics, in which rectangular parts
|
2020-08-06 06:02:20 -04:00
|
|
|
|
of the source image at arbitrary positions (i.e. not aligned to a matrix) are
|
|
|
|
|
substituted by matching images.")
|
|
|
|
|
(license license:gpl2))))
|
2020-09-17 05:09:21 -04:00
|
|
|
|
|
|
|
|
|
(define-public scantailor-advanced
|
|
|
|
|
(let ((commit "3d1e74e6ace413733511086934a66f4e3f7a6027"))
|
|
|
|
|
(package
|
|
|
|
|
(name "scantailor-advanced")
|
|
|
|
|
(version (string-append "1.0.16-" (string-take commit 7)))
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/4lex4/scantailor-advanced")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0kixwjb2x457dq7927hkh34c803p7yh1pmn6n61rk9shqrcg492h"))))
|
|
|
|
|
(build-system qt-build-system)
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("qttools" ,qttools)))
|
|
|
|
|
(inputs
|
|
|
|
|
`(("boost" ,boost)
|
|
|
|
|
("libjpeg" ,libjpeg-turbo)
|
|
|
|
|
("libpng" ,libpng)
|
|
|
|
|
("libtiff" ,libtiff)
|
2021-04-09 21:53:32 -04:00
|
|
|
|
("qtbase" ,qtbase-5)
|
2020-09-17 05:09:21 -04:00
|
|
|
|
("qtsvg" ,qtsvg)
|
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Some tests require a display and fail with offscreen mode.
|
|
|
|
|
(add-after 'unpack 'disable-failing-tests
|
|
|
|
|
(lambda _
|
|
|
|
|
(setenv "ARGS" "--exclude-regex \"imageproc_.*\"")
|
|
|
|
|
#t)))))
|
|
|
|
|
(home-page "https://github.com/4lex4/scantailor-advanced")
|
|
|
|
|
(synopsis "Clean up scanned pages")
|
|
|
|
|
(description "Scan Tailor is an interactive post-processing tool for
|
|
|
|
|
scanned pages. It performs operations such as page splitting, deskewing,
|
|
|
|
|
adding/removing borders, and others. You give it raw scans, and you get pages
|
|
|
|
|
ready to be printed or assembled into a PDF or DJVU file. Scanning, optical
|
|
|
|
|
character recognition, and assembling multi-page documents are out of scope of
|
|
|
|
|
this project.
|
|
|
|
|
|
|
|
|
|
Scan Tailer Advanced is a fork of Scan Tailer that merges Scan Tailor Featured
|
|
|
|
|
and Scan Tailor Enhanced versions as well as including many more bug fixes.")
|
|
|
|
|
(license license:gpl3+))))
|
2021-01-04 19:23:38 -05:00
|
|
|
|
|
|
|
|
|
(define-public stiff
|
|
|
|
|
(package
|
|
|
|
|
(name "stiff")
|
|
|
|
|
(version "2.4.0")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://www.astromatic.net/download/stiff/stiff-"
|
|
|
|
|
version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "14m92dskzw7bwsr64ha4p0mj3ndv13gwcbfic3qxrs3zq5353s7l"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(inputs
|
|
|
|
|
`(("libtiff" ,libtiff)
|
|
|
|
|
("zlib" ,zlib)
|
|
|
|
|
("libjpeg-turbo" ,libjpeg-turbo)))
|
|
|
|
|
(home-page "https://www.astromatic.net/software/stiff")
|
|
|
|
|
(synopsis "Convert scientific FITS images to TIFF format")
|
|
|
|
|
(description
|
|
|
|
|
"STIFF is a program that converts scientific @acronym{FITS, Flexible Image
|
|
|
|
|
Transport System} images to the more popular TIFF format for illustration
|
|
|
|
|
purposes.")
|
|
|
|
|
(license license:gpl3+)))
|
2021-06-25 02:27:31 -04:00
|
|
|
|
|
|
|
|
|
(define-public python-imgviz
|
|
|
|
|
(package
|
|
|
|
|
(name "python-imgviz")
|
|
|
|
|
(version "1.2.6")
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
;; PyPi tarball lacks tests.
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/wkentaro/imgviz.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32 "1bm0wdv5p26i8nl4kx3145cz553v401sgbpgc96sddzjfmfiydcw"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
(invoke "pytest" "-v" "tests"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-matplotlib" ,python-matplotlib)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("python-pillow" ,python-pillow)
|
|
|
|
|
("python-pyyaml" ,python-pyyaml)))
|
|
|
|
|
(native-inputs `(("python-pytest" ,python-pytest)))
|
|
|
|
|
(home-page "http://github.com/wkentaro/imgviz")
|
|
|
|
|
(synopsis "Image Visualization Tools")
|
|
|
|
|
(description "Python library for object detection, semantic and instance
|
|
|
|
|
segmentation.")
|
|
|
|
|
(license license:expat)))
|
2021-06-25 02:28:06 -04:00
|
|
|
|
|
|
|
|
|
(define-public labelme
|
|
|
|
|
(package
|
|
|
|
|
(name "labelme")
|
2021-11-03 04:15:15 -04:00
|
|
|
|
(version "4.5.13")
|
2021-06-25 02:28:06 -04:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
;; PyPi tarball lacks tests.
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/wkentaro/labelme.git")
|
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
2021-11-03 04:15:15 -04:00
|
|
|
|
(base32 "0cmi2xb4dgh7738l259rgwhn9l134f0vnaaqc2gflc5yr3lqhrv2"))))
|
2021-06-25 02:28:06 -04:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-before 'check 'start-xserver
|
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
|
(let ((xorg-server (assoc-ref inputs "xorg-server")))
|
|
|
|
|
;; Options taken from CI workflow.
|
|
|
|
|
(system (string-append xorg-server "/bin/Xvfb :99 -screen 0 "
|
|
|
|
|
"1920x1200x24 -ac +extension GLX +render "
|
|
|
|
|
"-noreset &"))
|
|
|
|
|
(setenv "DISPLAY" ":99.0"))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key inputs outputs tests? #:allow-other-keys)
|
|
|
|
|
(when tests?
|
|
|
|
|
(add-installed-pythonpath inputs outputs)
|
|
|
|
|
;; Fails when invoking help2man for unknown reason.
|
|
|
|
|
(delete-file "tests/docs_tests/man_tests/test_labelme_1.py")
|
|
|
|
|
;; One test hangs.
|
|
|
|
|
(delete-file "tests/labelme_tests/widgets_tests/test_label_dialog.py")
|
|
|
|
|
;; Calls incompatible function signatures.
|
|
|
|
|
(delete-file "tests/labelme_tests/widgets_tests/test_label_list_widget.py")
|
|
|
|
|
(setenv "MPLBACKEND" "agg")
|
|
|
|
|
(invoke "pytest" "-v" "tests" "-m" "not gpu")))))))
|
|
|
|
|
(propagated-inputs
|
|
|
|
|
`(("python-imgviz" ,python-imgviz)
|
|
|
|
|
("python-matplotlib" ,python-matplotlib)
|
|
|
|
|
("python-numpy" ,python-numpy)
|
|
|
|
|
("python-pillow" ,python-pillow)
|
|
|
|
|
("python-pyyaml" ,python-pyyaml)
|
|
|
|
|
("python-qtpy" ,python-qtpy)
|
|
|
|
|
("python-termcolor" ,python-termcolor)))
|
|
|
|
|
(native-inputs
|
|
|
|
|
`(("python-pytest" ,python-pytest)
|
|
|
|
|
("python-pytest-qt" ,python-pytest-qt)
|
|
|
|
|
("xorg-server" ,xorg-server-for-tests)))
|
|
|
|
|
(home-page "https://github.com/wkentaro/labelme")
|
|
|
|
|
(synopsis
|
|
|
|
|
"Image Polygonal Annotation")
|
|
|
|
|
(description
|
|
|
|
|
"Image and video labeling tool supporting different shapes like
|
|
|
|
|
polygons, rectangles, circles, lines, points and VOC/COCO export.")
|
|
|
|
|
(license license:gpl3+)))
|