You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

93 lines
3.9 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages imagemagick)
  19. #:use-module (guix packages)
  20. #:use-module (guix build-system gnu)
  21. #:use-module (guix download)
  22. #:use-module ((guix licenses) #:select (fsf-free))
  23. #:use-module (gnu packages libjpeg)
  24. #:use-module (gnu packages compression)
  25. #:use-module (gnu packages graphviz)
  26. #:use-module (gnu packages xorg)
  27. #:use-module (gnu packages xml)
  28. #:use-module (gnu packages gtk)
  29. #:use-module (gnu packages libpng)
  30. #:use-module (gnu packages libtiff)
  31. #:use-module (gnu packages libjpeg)
  32. #:use-module (gnu packages ghostscript)
  33. #:use-module (gnu packages fontutils)
  34. #:use-module (gnu packages pkg-config))
  35. (define-public imagemagick
  36. (package
  37. (name "imagemagick")
  38. (version "6.8.6-9")
  39. (source (origin
  40. (method url-fetch)
  41. (uri (string-append "mirror://imagemagick/ImageMagick-"
  42. version ".tar.xz"))
  43. (sha256
  44. (base32
  45. "1bpj8676mph5cvyjsdgf27i6yg2iw9iskk5c69mvpxkyawgjw1vg"))))
  46. (build-system gnu-build-system)
  47. (arguments
  48. `(#:phases (alist-cons-before
  49. 'build 'pre-build
  50. (lambda* (#:key outputs #:allow-other-keys)
  51. (substitute* "Makefile"
  52. ;; Clear the `LIBRARY_PATH' setting, which otherwise
  53. ;; interferes with our own use.
  54. (("^LIBRARY_PATH[[:blank:]]*=.*$")
  55. "")
  56. ;; Since the Makefile overrides $docdir, modify it to
  57. ;; refer to what we want.
  58. (("^DOCUMENTATION_PATH[[:blank:]]*=.*$")
  59. (let ((doc (assoc-ref outputs "doc")))
  60. (string-append "DOCUMENTATION_PATH = "
  61. doc "/share/doc/"
  62. ,name "-" ,version "\n")))))
  63. %standard-phases)))
  64. ;; TODO: Add Jasper, LCMS, etc.
  65. (inputs `(("graphviz" ,graphviz)
  66. ("ghostscript" ,ghostscript)
  67. ("libx11" ,libx11)
  68. ("zlib" ,zlib)
  69. ("libxml2" ,libxml2)
  70. ("libtiff" ,libtiff)
  71. ("libpng" ,libpng)
  72. ("libjpeg" ,libjpeg-8)
  73. ("pango" ,pango)
  74. ("freetype" ,freetype)
  75. ("bzip2" ,bzip2)
  76. ("xz" ,xz)
  77. ("pkg-config" ,pkg-config)))
  78. (outputs '("out"
  79. "doc")) ; 26 MiB of HTML documentation
  80. (home-page "http://www.imagemagick.org/")
  81. (synopsis "Create, edit, compose, or convert bitmap images")
  82. (description
  83. "ImageMagick® is a software suite to create, edit, compose, or convert
  84. bitmap images. It can read and write images in a variety of formats (over 100)
  85. including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG,
  86. and TIFF. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and
  87. transform images, adjust image colors, apply various special effects, or draw
  88. text, lines, polygons, ellipses and Bézier curves.")
  89. (license (fsf-free "http://www.imagemagick.org/script/license.php"))))