gnu: Add AVR-Libc.
[jackhill/guix/guix.git] / gnu / packages / gimp.scm
CommitLineData
a37b8077
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014 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
19(define-module (gnu packages gimp)
20 #:use-module (guix packages)
21 #:use-module (guix download)
b5b73a82 22 #:use-module ((guix licenses) #:prefix license:)
a37b8077
LC
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages pkg-config)
25 #:use-module (gnu packages glib)
26 #:use-module (gnu packages gtk)
27 #:use-module (gnu packages gnome)
e55354b8 28 #:use-module (gnu packages image)
a37b8077
LC
29 #:use-module ((gnu packages ghostscript)
30 #:select (lcms))
31 #:use-module (gnu packages compression)
32 #:use-module (gnu packages xml)
33 #:use-module (gnu packages photo)
34 #:use-module (gnu packages xorg)
35 #:use-module (gnu packages imagemagick))
36
37(define-public babl
38 (package
39 (name "babl")
40 (version "0.1.10")
41 (source (origin
42 (method url-fetch)
43 (uri (list (string-append "http://ftp.gtk.org/pub/babl/0.1/babl-"
44 version ".tar.bz2")
45 (string-append "ftp://ftp.gtk.org/pub/babl/0.1/babl-"
46 version ".tar.bz2")))
47 (sha256
48 (base32
49 "1x2mb7zfbvk9d0a7h5cpdff9hhjsadxvqml2jay2bpf7x9nc6gwl"))))
50 (build-system gnu-build-system)
51 (home-page "http://gegl.org/babl/")
52 (synopsis "Image pixel format conversion library")
53 (description
35b9e423 54 "Babl is a dynamic, any to any, pixel format translation library.
a37b8077
LC
55It allows converting between different methods of storing pixels known as
56pixel formats that have with different bitdepths and other data
57representations, color models and component permutations.
58
59A vocabulary to formulate new pixel formats from existing primitives is
60provided as well as the framework to add new color models and data types.")
61 (license license:lgpl3+)))
12c0f32a
JD
62
63(define-public gegl
64 (package
65 (name "gegl")
66 (version "0.2.0")
67 (source (origin
68 (method url-fetch)
69 (uri (list (string-append "http://download.gimp.org/pub/gegl/"
70 (string-take version 3)
71 "/" name "-" version ".tar.bz2")))
72 (sha256
73 (base32
74 "09nlv06li9nrn74ifpm7223mxpg0s7cii702z72cpbwrjh6nlbnz"))))
75 (build-system gnu-build-system)
76 (arguments
77 `(#:phases
78 (alist-cons-before
79 'build 'pre-build
80 (lambda _
81 ;; This test program seems to crash on exit. Specifically, whilst
82 ;; g_object_unreffing bufferA and bufferB - This seems to be a bug
83 ;; in the destructor. This is just a test program so will not have
84 ;; any wider effect, although might be hiding another problem.
85 ;; According to advice received on irc.gimp.org#gegl although 0.2.0
86 ;; is the latest released version, any bug reports against it will
87 ;; be ignored. So we are on our own.
88 (substitute* "tools/img_cmp.c"
89 (("g_object_unref \\(buffer.\\);") ""))
90
91 (substitute* "tests/compositions/Makefile"
92 (("/bin/sh") (which "bash"))))
93 %standard-phases)))
94 (inputs
95 `(("babl" ,babl)
96 ("glib" ,glib)
97 ("cairo" ,cairo)
98 ("pango" ,pango)
99 ("libpng" ,libpng)
100 ("libjpeg" ,libjpeg-8)))
101 (native-inputs
102 `(("pkg-config" ,pkg-config)
9fd571a2 103 ("glib" ,glib "bin") ; for gtester
12c0f32a
JD
104 ("intltool" ,intltool)))
105 (home-page "http://gegl.org")
106 (synopsis "Graph based image processing framework")
107 (description "GEGL (Generic Graphics Library) provides infrastructure to
108do demand based cached non destructive image editing on larger than RAM
109buffers.")
110 ;; The library itself is licensed under LGPL while the sample commandline
111 ;; application and GUI binary gegl is licensed under GPL.
112 (license (list license:lgpl3+ license:gpl3+))))
113
114(define-public gimp
115 (package
116 (name "gimp")
117 (version "2.8.10")
118 (source (origin
119 (method url-fetch)
120 (uri (string-append "http://download.gimp.org/pub/gimp/v2.8/gimp-"
121 version ".tar.bz2"))
122 (sha256
123 (base32
124 "1rha8yx0pplfjziqczjrxxp16vsvpmb5ziq3c218s4w9z4cqpzg7"))))
125 (build-system gnu-build-system)
126 (arguments
127 `(#:configure-flags
128 ;; We don't have pygtk which seems to be needed for this feature
129 `("--disable-python" )))
130 (inputs
131 `(("babl" ,babl)
132 ("glib" ,glib)
133 ("libtiff" ,libtiff)
134 ("libjpeg" ,libjpeg-8)
135 ("atk" ,atk)
136 ("gtk+" ,gtk+-2)
137 ("gegl" ,gegl)))
138 (native-inputs
139 `(("pkg-config" ,pkg-config)
140 ("intltool" ,intltool)))
141 (home-page "http://gimp.org")
66672a45
LC
142 (synopsis "GNU Image Manipulation Program")
143 (description
144 "GIMP is an application for image manipulation tasks such as photo
145retouching, composition and authoring. It supports all common image formats
146as well as specialized ones. It features a highly customizable interface
147that is extensible via a plugin system.")
12c0f32a 148 (license license:gpl3+))) ; some files are lgplv3