1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013, 2015, 2016 Andreas Enge <andreas@enge.fr>
3 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
4 ;;; Copyright © 2014, 2015 Alex Kost <alezost@gmail.com>
5 ;;; Copyright © 2014, 2016 Ricardo Wurmus <rekado@elephly.net>
6 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
7 ;;; Copyright © 2015 Amirouche Boubekki <amirouche@hypermove.net>
8 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
9 ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
10 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
12 ;;; This file is part of GNU Guix.
14 ;;; GNU Guix is free software; you can redistribute it and/or modify it
15 ;;; under the terms of the GNU General Public License as published by
16 ;;; the Free Software Foundation; either version 3 of the License, or (at
17 ;;; your option) any later version.
19 ;;; GNU Guix is distributed in the hope that it will be useful, but
20 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
21 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 ;;; GNU General Public License for more details.
24 ;;; You should have received a copy of the GNU General Public License
25 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
27 (define-module (gnu packages image)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages algebra)
30 #:use-module (gnu packages autotools)
31 #:use-module (gnu packages boost)
32 #:use-module (gnu packages compression)
33 #:use-module (gnu packages documentation)
34 #:use-module (gnu packages fontutils)
35 #:use-module (gnu packages ghostscript)
36 #:use-module (gnu packages gl)
37 #:use-module (gnu packages graphics)
38 #:use-module (gnu packages maths)
39 #:use-module (gnu packages perl)
40 #:use-module (gnu packages pkg-config)
41 #:use-module (gnu packages python)
42 #:use-module (gnu packages xml)
43 #:use-module (gnu packages xorg)
44 #:use-module (gnu packages zip)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix build-system gnu)
49 #:use-module (guix build-system cmake)
50 #:use-module (srfi srfi-1))
59 ;; Note: upstream removes older tarballs.
60 (uri (list (string-append "mirror://sourceforge/libpng/libpng15/"
61 version "/libpng-" version ".tar.xz")
63 "ftp://ftp.simplesystems.org/pub/libpng/png/src"
64 "/libpng15/libpng-" version ".tar.xz")))
66 (base32 "0kbissyd7d4ahwdpm968nnzl7q15p6hadg44i9x0vrkrzdgdi93v"))))
67 (build-system gnu-build-system)
69 ;; libpng.la says "-lz", so propagate it.
70 (propagated-inputs `(("zlib" ,zlib)))
72 (synopsis "Library for handling PNG files")
74 "Libpng is the official PNG (Portable Network Graphics) reference
75 library. It supports almost all PNG features and is extensible.")
76 (license license:zlib)
77 (home-page "http://www.libpng.org/pub/png/libpng.html")))
79 (define-public libpng-1.2
86 ;; Note: upstream removes older tarballs.
87 (uri (list (string-append "mirror://sourceforge/libpng/libpng12/"
88 version "/libpng-" version ".tar.xz")
90 "ftp://ftp.simplesystems.org/pub/libpng/png/src"
91 "/libpng12/libpng-" version ".tar.xz")))
93 (base32 "1ghd03p353x0vi4dk83n1nlldg11w7vqdk3f99rkgfb82ic59ki4"))))))
95 (define-public libjpeg
101 (uri (string-append "http://www.ijg.org/files/jpegsrc.v"
104 "19q5zr4n60sjcvfbyv06n4pcl1mai3ipvnd2akflayciinj3wx9s"))))
105 (build-system gnu-build-system)
106 (synopsis "Library for handling JPEG files")
108 "Libjpeg implements JPEG image encoding, decoding, and transcoding.
109 JPEG is a standardized compression method for full-color and gray-scale
111 The included programs provide conversion between the JPEG format and
112 image files in PBMPLUS PPM/PGM, GIF, BMP, and Targa file formats.")
113 (license license:ijg)
114 (home-page "http://www.ijg.org/")))
116 (define-public libjpeg-8
117 (package (inherit libjpeg)
121 (uri (string-append "http://www.ijg.org/files/jpegsrc.v"
124 "1cz0dy05mgxqdgjf52p54yxpyy95rgl30cnazdrfmw7hfca9n0h0"))))))
126 (define-public jpegoptim
132 (uri (string-append "http://www.kokkonen.net/tjko/src/jpegoptim-"
135 "0k53q7dc8w5ashz8v261x2b5vvz7gdvg8w962rz9gjvkjbh4lg93"))))
136 (build-system gnu-build-system)
137 (inputs `(("libjpeg" ,libjpeg)))
141 (synopsis "Optimize JPEG images")
143 "jpegoptim provides lossless optimization (based on optimizing
144 the Huffman tables) and \"lossy\" optimization based on setting
145 maximum quality factor.")
146 (license license:gpl2+)
147 (home-page "http://www.kokkonen.net/tjko/projects.html#jpegoptim")))
149 (define-public libtiff
155 (uri (string-append "ftp://ftp.remotesensing.org/pub/libtiff/tiff-"
158 "136nf1rj9dp5jgv1p7z4dk0xy3wki1w0vfjbk82f645m0w4samsd"))
159 (patches (search-patches
160 "libtiff-oob-accesses-in-decode.patch"
161 "libtiff-oob-write-in-nextdecode.patch"
162 "libtiff-CVE-2015-8665+CVE-2015-8683.patch"))))
163 (build-system gnu-build-system)
165 "doc")) ;1.3 MiB of HTML documentation
167 ;; Instead of using --docdir, this package has its own --with-docdir.
168 `(#:configure-flags (list (string-append "--with-docdir="
169 (assoc-ref %outputs "doc")
171 ,name "-" ,version))))
172 (inputs `(("zlib" ,zlib)
173 ("libjpeg" ,libjpeg)))
174 (synopsis "Library for handling TIFF files")
176 "Libtiff provides support for the Tag Image File Format (TIFF), a format
177 used for storing image data.
178 Included are a library, libtiff, for reading and writing TIFF and a small
179 collection of tools for doing simple manipulations of TIFF images.")
180 (license (license:non-copyleft "file://COPYRIGHT"
181 "See COPYRIGHT in the distribution."))
182 (home-page "http://www.remotesensing.org/libtiff/")))
184 (define-public libwmf
191 (uri (string-append "mirror://sourceforge/wvware/"
193 "/" name "-" version ".tar.gz"))
195 (base32 "1y3wba4q8pl7kr51212jwrsz1x6nslsx1gsjml1x0i8549lmqd2v"))
197 (search-patches "libwmf-CAN-2004-0941.patch"
198 "libwmf-CVE-2006-3376.patch"
199 "libwmf-CVE-2007-0455.patch"
200 "libwmf-CVE-2007-2756.patch"
201 "libwmf-CVE-2007-3472.patch"
202 "libwmf-CVE-2007-3473.patch"
203 "libwmf-CVE-2007-3477.patch"
204 "libwmf-CVE-2009-1364.patch"
205 "libwmf-CVE-2009-3546.patch"
206 "libwmf-CVE-2015-0848+CVE-2015-4588.patch"
207 "libwmf-CVE-2015-4695.patch"
208 "libwmf-CVE-2015-4696.patch"))))
210 (build-system gnu-build-system)
212 `(("freetype" ,freetype)
218 `(("pkg-config" ,pkg-config)))
219 (synopsis "Library for reading images in the Microsoft WMF format")
221 "libwmf is a library for reading vector images in Microsoft's native
222 Windows Metafile Format (WMF) and for either (a) displaying them in, e.g., an X
223 window; or (b) converting them to more standard/free file formats such as, e.g.,
224 the W3C's XML-based Scaleable Vector Graphic (SVG) format.")
225 (home-page "http://wvware.sourceforge.net/libwmf.html")
227 ;; 'COPYING' is the GPLv2, but file headers say LGPLv2.0+.
228 (license license:lgpl2.0+)))
230 (define-public leptonica
237 (uri (string-append "http://www.leptonica.com/source/leptonica-"
240 (base32 "0mhzvqs0im04y1cpcc1yma70hgdac1frf33h73m9z3356bfymmbr"))
241 (modules '((guix build utils)))
242 ;; zlib and openjpg should be under Libs, not Libs.private. See:
243 ;; https://code.google.com/p/tesseract-ocr/issues/detail?id=1436
245 '(substitute* "lept.pc.in"
246 (("^(Libs\\.private: .*)@ZLIB_LIBS@(.*)" all pre post)
247 (string-append pre post))
248 (("^(Libs\\.private: .*)@JPEG_LIBS@(.*)" all pre post)
249 (string-append pre post))
251 (string-append all " @ZLIB_LIBS@ @JPEG_LIBS@"))))))
252 (build-system gnu-build-system)
254 `(("gnuplot" ,gnuplot))) ;needed for test suite
260 ("libwebp" ,libwebp)))
262 `(("openjpeg" ,openjpeg)
265 '(#:parallel-tests? #f ; XXX: cause fpix1_reg to fail
267 (modify-phases %standard-phases
268 ;; Prevent make from trying to regenerate config.h.in.
270 'unpack 'set-config-h-in-file-time
272 (set-file-time "config/config.h.in" (stat "configure"))))
274 'unpack 'patch-reg-wrapper
276 (substitute* "prog/reg_wrapper.sh"
278 (string-append " " (which "sh") " "))
279 (("which gnuplot") (which "gnuplot")))))
281 'check 'disable-failing-tests
282 ;; XXX: 2 of 9 tests from webpio_reg fails.
284 (substitute* "prog/webpio_reg.c"
285 ((".*DoWebpTest2.* 90.*") "")
286 ((".*DoWebpTest2.* 100.*") "")))))))
287 (home-page "http://www.leptonica.com/")
288 (synopsis "Library and tools for image processing and analysis")
290 "Leptonica is a C library and set of command-line tools for efficient
291 image processing and image analysis operations. It supports rasterop, affine
292 transformations, binary and grayscale morphology, rank order, and convolution,
293 seedfill and connected components, image transformations combining changes in
294 scale and pixel depth, and pixelwise masking, blending, enhancement, and
296 (license license:bsd-2)))
298 (define-public jbig2dec
305 (uri ;; The link on the homepage is dead.
306 (string-append "http://distfiles.gentoo.org/distfiles/" name "-"
309 (base32 "1ffhgmf2fqzk0h4k736pp06z7q5y4x41fg844bd6a9vgncq86bby"))
310 (patches (search-patches "jbig2dec-ignore-testtest.patch"))))
312 (build-system gnu-build-system)
313 (synopsis "Decoder of the JBIG2 image compression format")
315 "JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
316 monochrome) images at moderately high resolution, and in particular scanned
317 paper documents. In this domain it is very efficient, offering compression
318 ratios on the order of 100:1.
320 This is a decoder only implementation, and currently is in the alpha
321 stage, meaning it doesn't completely work yet. However, it is
322 maintaining parity with available encoders, so it is useful for real
324 (home-page "http://jbig2dec.sourceforge.net/")
325 (license license:gpl2+)))
327 (define-public openjpeg
335 (string-append "mirror://sourceforge/openjpeg.mirror/" name "-"
338 (base32 "00zzm303zvv4ijzancrsb1cqbph3pgz0nky92k9qx3fq9y0vnchj"))
339 (patches (search-patches "openjpeg-use-after-free-fix.patch"
340 "openjpeg-CVE-2015-6581.patch"))))
341 (build-system cmake-build-system)
343 ;; Trying to run `$ make check' results in a no rule fault.
350 (synopsis "JPEG 2000 codec")
352 "The OpenJPEG library is a JPEG 2000 codec written in C. It has
353 been developed in order to promote the use of JPEG 2000, the new
354 still-image compression standard from the Joint Photographic Experts
357 In addition to the basic codec, various other features are under
358 development, among them the JP2 and MJ2 (Motion JPEG 2000) file formats,
359 an indexing tool useful for the JPIP protocol, JPWL-tools for
360 error-resilience, a Java-viewer for j2k-images, ...")
361 (home-page "https://github.com/uclouvain/openjpeg")
362 (license license:bsd-2)))
364 (define-public openjpeg-2.0
365 (package (inherit openjpeg)
372 (string-append "mirror://sourceforge/openjpeg.mirror/" name "-"
375 (base32 "1c2xc3nl2mg511b63rk7hrckmy14681p1m44mzw3n1fyqnjm0b0z"))
376 (patches (search-patches "openjpeg-use-after-free-fix.patch"
377 "openjpeg-CVE-2015-6581.patch"))))))
379 (define-public openjpeg-1
380 (package (inherit openjpeg)
387 (string-append "mirror://sourceforge/openjpeg.mirror/" name "-"
390 (base32 "11waq9w215zvzxrpv40afyd18qf79mxc28fda80bm3ax98cpppqm"))))))
392 (define-public giflib
398 (uri (string-append "mirror://sourceforge/giflib/giflib-"
399 (first (string-split version #\.))
400 ".x/giflib-" version ".tar.bz2"))
403 "1md83dip8rf29y40cm5r7nn19705f54iraz6545zhwa6y8zyq9yz"))))
404 (build-system gnu-build-system)
405 (outputs '("bin" ; utility programs
407 (inputs `(("libx11" ,libx11)
413 (modify-phases %standard-phases
414 (add-after 'unpack 'disable-html-doc-gen
416 (substitute* "doc/Makefile.in"
417 (("^all: allhtml manpages") ""))))
418 (add-after 'install 'install-manpages
419 (lambda* (#:key outputs #:allow-other-keys)
420 (let* ((bin (assoc-ref outputs "bin"))
421 (man1dir (string-append bin "/share/man/man1")))
423 (for-each (lambda (file)
424 (let ((base (basename file)))
425 (format #t "installing `~a' to `~a'~%"
430 (find-files "doc" "\\.1"))))))))
431 (synopsis "Tools and library for working with GIF images")
433 "GIFLIB is a library for reading and writing GIF images. It is API and
434 ABI compatible with libungif which was in wide use while the LZW compression
435 algorithm was patented. Tools are also included to convert, manipulate,
436 compose, and analyze GIF images.")
437 (home-page "http://giflib.sourceforge.net/")
438 (license license:x11)))
440 (define-public libungif
446 (uri (string-append "mirror://sourceforge/giflib/libungif-"
450 "0cnksimmmjngdrys302ik1385sg1sj4i0gxivzldhgwd46n7x2kh"))))
451 (build-system gnu-build-system)
452 (inputs `(("perl" ,perl))) ;package ships some perl tools
453 (home-page "http://giflib.sourceforge.net/")
454 (synopsis "GIF decompression library")
456 "libungif is the old GIF decompression library by the GIFLIB project.")
457 (license license:expat)))
459 (define-public imlib2
466 "mirror://sourceforge/enlightenment/imlib2-"
470 "08809xxk2555yj6glixzw9a0x3x8cx55imd89kj3r0h152bn8a3x"))))
471 (build-system gnu-build-system)
473 `(("pkgconfig" ,pkg-config)))
477 ("freetype" ,freetype)
483 (home-page "http://sourceforge.net/projects/enlightenment/")
485 "Loading, saving, rendering and manipulating image files")
487 "Imlib2 is a library that does image file loading and saving as well as
488 rendering, manipulation, arbitrary polygon support, etc.
490 It does ALL of these operations FAST. Imlib2 also tries to be highly
491 intelligent about doing them, so writing naive programs can be done easily,
492 without sacrificing speed.
494 This is a complete rewrite over the Imlib 1.x series. The architecture is
495 more modular, simple, and flexible.")
496 (license license:imlib2)))
498 (define-public giblib
506 "http://linuxbrit.co.uk/downloads/giblib-"
509 "https://sourceforge.net/projects/slackbuildsdirectlinks/"
510 "files/giblib/giblib-" version ".tar.gz")))
513 "1b4bmbmj52glq0s898lppkpzxlprq9aav49r06j2wx4dv3212rhp"))))
514 (build-system gnu-build-system)
518 (home-page "http://linuxbrit.co.uk/software/") ; no real home-page
519 (synopsis "Wrapper library for imlib2")
521 "Giblib is a simple library which wraps imlib2's context API, avoiding
522 all the context_get/set calls, adds fontstyles to the truetype renderer and
523 supplies a generic doubly-linked list and some string functions.")
524 ;; This license removes a clause about X Consortium from the original
526 (license (license:x11-style "file://COPYING"
527 "See 'COPYING' in the distribution."))))
529 (define-public freeimage
536 "mirror://sourceforge/freeimage/Source%20Distribution/"
538 (string-concatenate (string-split version #\.))
542 "12bz57asdcfsz3zr9i9nska0fb6h3z2aizy412qjqkixkginbz7v"))
543 (patches (search-patches "freeimage-CVE-2015-0852.patch"))))
544 (build-system gnu-build-system)
546 '(#:phases (alist-delete
549 'build 'patch-makefile
550 (lambda* (#:key outputs #:allow-other-keys)
551 (substitute* "Makefile.gnu"
552 (("/usr") (assoc-ref outputs "out"))
553 (("-o root -g root") "")))
555 #:make-flags '("CC=gcc")
556 #:tests? #f)) ; no check target
559 ;; Fails to build on MIPS due to assembly code in the source.
560 (supported-systems (delete "mips64el-linux" %supported-systems))
561 (synopsis "Library for handling popular graphics image formats")
563 "FreeImage is a library for developers who would like to support popular
564 graphics image formats like PNG, BMP, JPEG, TIFF and others.")
565 (license license:gpl2+)
566 (home-page "http://freeimage.sourceforge.net")))
575 (uri (string-append "https://github.com/ukoethe/vigra/releases/download/"
576 "Version-1-11-0/vigra-"
577 version "-src.tar.gz"))
579 "1jzm79kqiiilvys3b8mlzy9cvmiirrcwsrlg19qd9rza8zipsqb8"))))
580 (build-system cmake-build-system)
586 ("ilmbase" ,ilmbase) ; propagated by openexr, but needed explicitly
587 ; to create a configure-flag
592 ("python" ,python-2) ; print syntax
593 ("python2-numpy" ,python2-numpy)
596 `(("doxygen" ,doxygen)
597 ("python2-nose" ,python2-nose)
598 ("python2-sphinx" ,python2-sphinx)))
600 `(#:test-target "check"
601 #:parallel-build? #f ; parallel builds trigger an ICE
603 (list "-Wno-dev" ; suppress developer mode with lots of warnings
604 (string-append "-DVIGRANUMPY_INSTALL_DIR="
605 (assoc-ref %outputs "out")
606 "/lib/python2.7/site-packages")
607 ;; OpenEXR is not enabled by default.
609 ;; The header files of ilmbase are not found when included
610 ;; by the header files of openexr, and an explicit flag
612 (string-append "-DCMAKE_CXX_FLAGS=-I"
613 (assoc-ref %build-inputs "ilmbase")
614 "/include/OpenEXR"))))
615 (synopsis "Computer vision library")
617 "VIGRA stands for Vision with Generic Algorithms. It is an image
618 processing and analysis library that puts its main emphasis on customizable
619 algorithms and data structures. It is particularly strong for
620 multi-dimensional image processing.")
621 (license license:expat)
622 (home-page "https://hci.iwr.uni-heidelberg.de/vigra")))
624 (define-public libwebp
632 "http://downloads.webmproject.org/releases/webp/libwebp-" version
635 (base32 "1i4hfczjm3b1qj1g4cc9hgb69l47f3nkgf6hk7nz4dm9zmc0vgpg"))))
636 (build-system gnu-build-system)
638 `(("freeglut" ,freeglut)
642 ("libtiff" ,libtiff)))
644 '(#:configure-flags '("--enable-libwebpmux"
645 "--enable-libwebpdemux"
646 "--enable-libwebpdecoder")))
647 (home-page "https://developers.google.com/speed/webp/")
648 (synopsis "Lossless and lossy image compression")
650 "WebP is a new image format that provides lossless and lossy compression
651 for images. WebP lossless images are 26% smaller in size compared to
652 PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG images at
653 equivalent SSIM index. WebP supports lossless transparency (also known as
654 alpha channel) with just 22% additional bytes. Transparency is also supported
655 with lossy compression and typically provides 3x smaller file sizes compared
656 to PNG when lossy compression is acceptable for the red/green/blue color
658 (license license:bsd-3)))
660 (define-public libmng
666 (uri (string-append "mirror://sourceforge/libmng/"
667 name "-" version ".tar.xz"))
670 "1lvxnpds0vcf0lil6ia2036ghqlbl740c4d2sz0q5g6l93fjyija"))))
671 (build-system gnu-build-system)
673 ;; These are all in the 'Libs.private' field of libmng.pc.
677 (home-page "http://www.libmng.com/")
678 (synopsis "Library for handling MNG files")
680 "Libmng is the MNG (Multiple-image Network Graphics) reference library.")
681 (license license:bsd-3)))
689 (uri (string-append "http://downloads.sourceforge.net/openil/"
690 "DevIL-" version ".tar.gz"))
693 "1zd850nn7nvkkhasrv7kn17kzgslr5ry933v6db62s4lr0zzlbv8"))
694 ;; Backported from upstream:
695 ;; https://github.com/DentonW/DevIL/commit/724194d7a9a91221a564579f64bdd6f0abd64219.patch
696 (patches (search-patches "devil-fix-libpng.patch"
697 "devil-CVE-2009-3994.patch"))
698 (modules '((guix build utils)))
700 ;; Fix old lcms include directives and lib flags.
701 '(substitute* '("configure" "src-IL/src/il_profiles.c")
702 (("-llcms") "-llcms2")
703 (("lcms/lcms\\.h") "lcms2/lcms2.h")
704 (("lcms\\.h") "lcms2.h")))))
705 (build-system gnu-build-system)
707 '(#:configure-flags '("--enable-ILUT=yes") ; build utility library
709 (modify-phases %standard-phases
710 (add-before 'check 'fix-tests
711 (lambda* (#:key inputs #:allow-other-keys)
712 ;; Fix hard-coded /bin/bash reference.
713 (substitute* '("test/Makefile")
714 (("TESTS_ENVIRONMENT = /bin/bash")
715 (string-append "TESTS_ENVIRONMENT = "
716 (assoc-ref inputs "bash")
720 `(("pkg-config" ,pkg-config)))
729 (synopsis "Library for manipulating many image formats")
730 (description "Developer's Image Library (DevIL) is a library to develop
731 applications with support for many types of images. DevIL can load, save,
732 convert, manipulate, filter and display a wide variety of image formats.")
733 (home-page "http://openil.sourceforge.net")
734 (license license:lgpl2.1+)))
736 (define-public jasper
742 (uri (string-append "https://www.ece.uvic.ca/~frodo/jasper"
743 "/software/jasper-" version ".zip"))
746 "154l7zk7yh3v8l2l6zm5s2alvd2fzkp6c9i18iajfbna5af5m43b"))
747 (patches (search-patches
748 "jasper-CVE-2007-2721.patch"
749 "jasper-CVE-2008-3520.patch"
750 "jasper-CVE-2008-3522.patch"
751 "jasper-CVE-2011-4516-and-CVE-2011-4517.patch"
752 "jasper-CVE-2014-8137.patch"
753 "jasper-CVE-2014-8138.patch"
754 "jasper-CVE-2014-8157.patch"
755 "jasper-CVE-2014-8158.patch"
756 "jasper-CVE-2014-9029.patch"
757 "jasper-CVE-2016-1577.patch"
758 "jasper-CVE-2016-1867.patch"
759 "jasper-CVE-2016-2089.patch"
760 "jasper-CVE-2016-2116.patch"))))
761 (build-system gnu-build-system)
764 (synopsis "JPEG-2000 library")
765 (description "The JasPer Project is an initiative to provide a reference
766 implementation of the codec specified in the JPEG-2000 Part-1 standard (i.e.,
768 (home-page "https://www.ece.uvic.ca/~frodo/jasper/")
769 (license (license:x11-style "file://LICENSE"))))
778 (uri (string-append "https://github.com/sekrit-twc/zimg/archive/"
779 "release-" version ".tar.gz"))
780 (file-name (string-append name "-" version ".tar.gz"))
783 "1hqp1gcsa2zhypms5dnasb1srjgxdqm7cip3w5i571kk9nxkn289"))))
784 (build-system gnu-build-system)
786 `(("autoconf" ,autoconf)
787 ("automake" ,automake)
788 ("libtool" ,libtool)))
791 (modify-phases %standard-phases
792 (add-after 'unpack 'autogen
794 (zero? (system* "sh" "autogen.sh")))))))
795 (synopsis "Scaling, colorspace conversion, and dithering library")
796 (description "Zimg implements the commonly required image processing basics
797 of scaling, colorspace conversion, and depth conversion. A simple API enables
798 conversion between any supported formats to operate with minimal knowledge from
800 (home-page "https://github.com/sekrit-twc/zimg")
801 ;; test/extra/ contains musl-libm,
802 ;; which is MIT/expat licensed, but only used for tests
803 (license (license:fsf-free "file://COPYING")))) ;WTFPL version 2