Commit | Line | Data |
---|---|---|
9208d0c1 | 1 | ;;; GNU Guix --- Functional package management for GNU |
4e9dfe39 | 2 | ;;; Copyright © 2014, 2015, 2017 Ludovic Courtès <ludo@gnu.org> |
d9cef612 | 3 | ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> |
1d093724 | 4 | ;;; Copyright © 2015, 2017 Andreas Enge <andreas@enge.fr> |
5041d03a | 5 | ;;; Copyright © 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il> |
c49840f8 | 6 | ;;; Copyright © 2017 Roel Janssen <roel@gnu.org> |
84f5e437 | 7 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
13d9794d | 8 | ;;; Copyright © 2018 Leo Famulari <leo@famulari.name> |
9208d0c1 LC |
9 | ;;; |
10 | ;;; This file is part of GNU Guix. | |
11 | ;;; | |
12 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
13 | ;;; under the terms of the GNU General Public License as published by | |
14 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
15 | ;;; your option) any later version. | |
16 | ;;; | |
17 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
18 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | ;;; GNU General Public License for more details. | |
21 | ;;; | |
22 | ;;; You should have received a copy of the GNU General Public License | |
23 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
24 | ||
25 | (define-module (gnu packages photo) | |
0e6412c1 | 26 | #:use-module (guix build-system cmake) |
9208d0c1 | 27 | #:use-module (guix build-system gnu) |
b138ec94 | 28 | #:use-module (guix build-system perl) |
f0644195 AE |
29 | #:use-module (guix download) |
30 | #:use-module ((guix licenses) #:prefix license:) | |
31 | #:use-module (guix packages) | |
8957241d | 32 | #:use-module (guix utils) |
ce16d312 | 33 | #:use-module (gnu packages) |
1d093724 | 34 | #:use-module (gnu packages algebra) |
9208d0c1 | 35 | #:use-module (gnu packages autotools) |
f0644195 | 36 | #:use-module (gnu packages base) |
8957241d | 37 | #:use-module (gnu packages boost) |
0e6412c1 | 38 | #:use-module (gnu packages compression) |
91a9c65c RJ |
39 | #:use-module (gnu packages curl) |
40 | #:use-module (gnu packages databases) | |
1d093724 | 41 | #:use-module (gnu packages gettext) |
8957241d AE |
42 | #:use-module (gnu packages ghostscript) |
43 | #:use-module (gnu packages gl) | |
91a9c65c | 44 | #:use-module (gnu packages gnome) |
c49840f8 | 45 | #:use-module (gnu packages glib) |
8957241d | 46 | #:use-module (gnu packages graphics) |
91a9c65c | 47 | #:use-module (gnu packages gtk) |
0e6412c1 | 48 | #:use-module (gnu packages image) |
8957241d | 49 | #:use-module (gnu packages imagemagick) |
13d9794d | 50 | #:use-module (gnu packages libcanberra) |
f0644195 | 51 | #:use-module (gnu packages libusb) |
91a9c65c | 52 | #:use-module (gnu packages llvm) |
d16479c5 | 53 | #:use-module (gnu packages man) |
8957241d | 54 | #:use-module (gnu packages maths) |
b138ec94 | 55 | #:use-module (gnu packages perl) |
f0644195 AE |
56 | #:use-module (gnu packages pkg-config) |
57 | #:use-module (gnu packages popt) | |
91a9c65c | 58 | #:use-module (gnu packages python) |
8957241d | 59 | #:use-module (gnu packages readline) |
8f9ac901 | 60 | #:use-module (gnu packages tex) |
8957241d | 61 | #:use-module (gnu packages web) |
1d093724 | 62 | #:use-module (gnu packages wxwidgets) |
8957241d | 63 | #:use-module (gnu packages xfig) |
1d093724 | 64 | #:use-module (gnu packages xorg) |
4dbef239 | 65 | #:use-module (gnu packages xml) |
4e9dfe39 | 66 | #:use-module ((srfi srfi-1) #:hide (zip)) |
4dbef239 | 67 | #:use-module (srfi srfi-26)) |
9208d0c1 | 68 | |
d9cef612 RW |
69 | (define-public libraw |
70 | (package | |
71 | (name "libraw") | |
29053287 | 72 | (version "0.19.0") |
d9cef612 RW |
73 | (source (origin |
74 | (method url-fetch) | |
fe535d81 | 75 | (uri (string-append "https://www.libraw.org/data/LibRaw-" |
d9cef612 RW |
76 | version ".tar.gz")) |
77 | (sha256 | |
78 | (base32 | |
29053287 | 79 | "0nfj7s7qmgfy1cl8s3ck7dxjvprfq5glfi6iidmvmy8r7gl52gz8")))) |
d9cef612 | 80 | (build-system gnu-build-system) |
afb27214 MB |
81 | (native-inputs |
82 | `(("pkg-config" ,pkg-config))) | |
83 | (inputs | |
5041d03a | 84 | `(("libjpeg" ,libjpeg))) ;for lossy DNGs and old Kodak cameras |
afb27214 MB |
85 | (propagated-inputs |
86 | `(("lcms" ,lcms))) ;for color profiles | |
fe535d81 | 87 | (home-page "https://www.libraw.org") |
d9cef612 RW |
88 | (synopsis "Raw image decoder") |
89 | (description | |
90 | "LibRaw is a library for reading RAW files obtained from digital photo | |
91 | cameras (CRW/CR2, NEF, RAF, DNG, and others).") | |
afea8694 MB |
92 | ;; LibRaw is distributed under both LGPL2.1 and CDDL 1.0. From the README: |
93 | ;; "You may use one of these licensing modes and switch between them. If | |
94 | ;; you modify LibRaw source and made your changes public, you should accept | |
95 | ;; both two licensing modes for your changes/additions." | |
96 | (license (list license:lgpl2.1 license:cddl1.0)))) | |
d9cef612 | 97 | |
9208d0c1 LC |
98 | (define-public libexif |
99 | (package | |
100 | (name "libexif") | |
101 | (version "0.6.21") | |
102 | (source (origin | |
103 | (method url-fetch) | |
de67e922 LF |
104 | (uri (string-append "mirror://sourceforge/libexif/libexif/" |
105 | version "/libexif-" version ".tar.bz2")) | |
ccb5cac1 LF |
106 | (patches (search-patches "libexif-CVE-2016-6328.patch" |
107 | "libexif-CVE-2017-7544.patch")) | |
9208d0c1 LC |
108 | (sha256 |
109 | (base32 | |
110 | "06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n")))) | |
111 | (build-system gnu-build-system) | |
112 | (home-page "http://libexif.sourceforge.net/") | |
113 | (synopsis "Read and manipulate EXIF data in digital photographs") | |
114 | (description | |
115 | "The libexif C library allows applications to read, edit, and save EXIF | |
116 | data as produced by digital cameras.") | |
341f4965 | 117 | (license license:lgpl2.1+))) |
9208d0c1 LC |
118 | |
119 | (define-public libgphoto2 | |
120 | (package | |
121 | (name "libgphoto2") | |
d17d1e75 | 122 | (version "2.5.18") |
9208d0c1 LC |
123 | (source (origin |
124 | (method url-fetch) | |
de67e922 LF |
125 | (uri (string-append "mirror://sourceforge/gphoto/libgphoto/" |
126 | version "/libgphoto2-" version ".tar.bz2")) | |
9208d0c1 LC |
127 | (sha256 |
128 | (base32 | |
d17d1e75 | 129 | "1v57ayp17j88bj79nl7rf4iyajbxx00kgb4l5k3kbv50gjfvh5sv")))) |
9208d0c1 LC |
130 | (build-system gnu-build-system) |
131 | (native-inputs `(("pkg-config" ,pkg-config))) | |
132 | (inputs | |
7e49a851 | 133 | `(("libjpeg-turbo" ,libjpeg-turbo) |
3246cc91 | 134 | ("libltdl" ,libltdl) |
d32f4800 TGR |
135 | ("libusb" ,libusb) |
136 | ("libxml2" ,libxml2))) | |
9208d0c1 LC |
137 | (propagated-inputs |
138 | `(;; The .pc refers to libexif. | |
139 | ("libexif" ,libexif))) | |
140 | (home-page "http://www.gphoto.org/proj/libgphoto2/") | |
141 | (synopsis "Accessing digital cameras") | |
142 | (description | |
143 | "This is the library backend for gphoto2. It contains the code for PTP, | |
144 | MTP, and other vendor specific protocols for controlling and transferring data | |
145 | from digital cameras.") | |
146 | ||
147 | ;; 'COPYING' says LGPLv2.1+, but in practices files are under LGPLv2+. | |
341f4965 | 148 | (license license:lgpl2.1+))) |
9208d0c1 LC |
149 | |
150 | (define-public gphoto2 | |
151 | (package | |
152 | (name "gphoto2") | |
5a8cea38 | 153 | (version "2.5.17") |
9208d0c1 LC |
154 | (source (origin |
155 | (method url-fetch) | |
de67e922 LF |
156 | (uri (string-append "mirror://sourceforge/gphoto/gphoto/" version |
157 | "/gphoto2-" version ".tar.bz2")) | |
9208d0c1 LC |
158 | (sha256 |
159 | (base32 | |
5a8cea38 | 160 | "0kslwclyyzvnxjw3gdzhlagj7l5f8lba833ipr9s0s0c4hwi0mxa")))) |
9208d0c1 LC |
161 | (build-system gnu-build-system) |
162 | (native-inputs | |
163 | `(("pkg-config" ,pkg-config))) | |
164 | (inputs | |
165 | `(("readline" ,readline) | |
7e49a851 | 166 | ("libjpeg-turbo" ,libjpeg-turbo) |
9208d0c1 LC |
167 | ("popt" ,popt) |
168 | ("libexif" ,libexif) | |
169 | ("libgphoto2" ,libgphoto2))) | |
170 | (arguments | |
dc1d3cde KK |
171 | '(#:phases |
172 | (modify-phases %standard-phases | |
173 | (add-before 'check 'pre-check | |
174 | (lambda* (#:key inputs #:allow-other-keys) | |
175 | (substitute* (find-files "tests/data" "\\.param$") | |
176 | (("/usr/bin/env") | |
177 | (which "env"))) | |
178 | #t))) | |
9208d0c1 | 179 | |
a0bb98c3 | 180 | ;; FIXME: There is 1 test failure, most likely related to the build |
9208d0c1 LC |
181 | ;; environment. |
182 | #:tests? #f)) | |
183 | ||
184 | (home-page "http://www.gphoto.org/") | |
185 | (synopsis "Command-line tools to access digital cameras") | |
186 | (description | |
187 | "Gphoto2 is a set of command line utilities for manipulating a large | |
188 | number of different digital cameras. Through libgphoto2, it supports PTP, | |
189 | MTP, and much more.") | |
190 | ||
191 | ;; Files are typically under LGPLv2+, but 'COPYING' says GPLv2+. | |
341f4965 | 192 | (license license:gpl2+))) |
b138ec94 LC |
193 | |
194 | (define-public perl-image-exiftool | |
195 | (package | |
196 | (name "perl-image-exiftool") | |
6acdfa96 | 197 | (version "11.01") |
b138ec94 LC |
198 | (source (origin |
199 | (method url-fetch) | |
200 | (uri (string-append | |
201 | "mirror://cpan/authors/id/E/EX/EXIFTOOL/Image-ExifTool-" | |
202 | version ".tar.gz")) | |
203 | (sha256 | |
204 | (base32 | |
6acdfa96 | 205 | "175w34n73mypdpbaqj2vgqsfp59yvfrn8k7zmx4cawnp895bypvh")))) |
b138ec94 LC |
206 | (build-system perl-build-system) |
207 | (arguments | |
33717a17 LF |
208 | '(#:phases |
209 | (modify-phases %standard-phases | |
210 | (add-after 'install 'post-install | |
211 | (lambda* (#:key outputs #:allow-other-keys) | |
212 | ;; Make sure the 'exiftool' commands finds the library. | |
213 | ;; XXX: Shouldn't it be handled by PERL-BUILD-SYSTEM? | |
214 | (let* ((out (assoc-ref outputs "out")) | |
215 | (pm (find-files out "^ExifTool\\.pm$")) | |
216 | (lib (dirname (dirname (car pm))))) | |
217 | (wrap-program (string-append out "/bin/exiftool") | |
218 | `("PERL5LIB" prefix (,lib))))))))) | |
67abcc05 | 219 | (home-page "http://search.cpan.org/dist/Image-ExifTool") |
ae6591ef LF |
220 | (synopsis "Program and Perl library to manipulate EXIF and other metadata") |
221 | (description "This package provides the @code{exiftool} command and the | |
222 | @code{Image::ExifTool} Perl library to manipulate EXIF tags of digital images | |
223 | and a wide variety of other metadata.") | |
2f3108ad | 224 | (license license:perl-license))) |
0e6412c1 AE |
225 | |
226 | (define-public libpano13 | |
227 | (package | |
228 | (name "libpano13") | |
229 | (version "2.9.19") | |
230 | (source (origin | |
231 | (method url-fetch) | |
232 | (uri (string-append "mirror://sourceforge/panotools/libpano13/" | |
233 | "libpano13-" version "/" | |
234 | "libpano13-" version ".tar.gz")) | |
235 | (sha256 | |
236 | (base32 | |
237 | "1a4m3plmfcrrplqs9zfzhc5apibn10m5sajpizm1sd3q74w5fwq3")))) | |
238 | (build-system cmake-build-system) | |
239 | (inputs | |
240 | `(("libjpeg" ,libjpeg) | |
241 | ("libpng" ,libpng) | |
242 | ("libtiff" ,libtiff) | |
243 | ("zlib" ,zlib))) | |
244 | (home-page "http://panotools.sourceforge.net/") | |
245 | (synopsis "Library for panoramic images") | |
246 | (description | |
247 | "The libpano13 package contains the backend library written by the | |
248 | Panorama Tools project for building panoramic images from a set of | |
249 | overlapping images, as well as some command line tools.") | |
250 | (license license:gpl2+))) | |
8957241d AE |
251 | |
252 | (define-public enblend-enfuse | |
253 | (package | |
254 | (name "enblend-enfuse") | |
d16479c5 | 255 | (version "4.2") |
8957241d AE |
256 | (source (origin |
257 | (method url-fetch) | |
258 | (uri (string-append "mirror://sourceforge/enblend/" | |
259 | name "/" | |
260 | name "-" (version-major+minor version) "/" | |
261 | name "-" version ".tar.gz")) | |
262 | (sha256 | |
263 | (base32 | |
d16479c5 | 264 | "0j5x011ilalb47ssah50ag0a4phgh1b0wdgxdbbp1gcyjcjf60w7")))) |
8957241d AE |
265 | (build-system gnu-build-system) |
266 | (native-inputs | |
267 | `(("pkg-config" ,pkg-config) | |
268 | ("perl" ,perl) | |
269 | ("perl-timedate" ,perl-timedate) | |
270 | ;; for building the documentation | |
271 | ("gnuplot" ,gnuplot) | |
d16479c5 | 272 | ("help2man" ,help2man) |
8957241d AE |
273 | ("imagemagick" ,imagemagick) |
274 | ("libxml2" ,libxml2) | |
84de27c8 | 275 | ("texlive-minimal" ,texlive-tiny) |
8957241d AE |
276 | ("tidy" ,tidy) |
277 | ("transfig" ,transfig))) | |
278 | (inputs | |
279 | `(("boost" ,boost) | |
280 | ("gsl" ,gsl) | |
281 | ("lcms" ,lcms) | |
282 | ("libjpeg" ,libjpeg) | |
283 | ("libpng" ,libpng) | |
284 | ("libtiff" ,libtiff) | |
285 | ("openexr" ,openexr) | |
286 | ("vigra" ,vigra) | |
287 | ("zlib" ,zlib))) | |
288 | (arguments | |
289 | `(#:configure-flags `("--enable-openmp"))) | |
290 | (home-page "http://enblend.sourceforge.net/") | |
291 | (synopsis "Tools for combining and blending images") | |
292 | (description | |
293 | "Enblend blends away the seams in a panoramic image mosaic using a | |
294 | multi-resolution spline. Enfuse merges different exposures of the same | |
295 | scene to produce an image that looks much like a tone-mapped image.") | |
296 | (license license:gpl2+))) | |
c49840f8 RJ |
297 | |
298 | (define-public lensfun | |
299 | (package | |
300 | (name "lensfun") | |
301 | (version "0.3.2") | |
302 | (source (origin | |
303 | (method url-fetch) | |
304 | (uri (string-append | |
305 | "mirror://sourceforge/lensfun/" | |
306 | version "/lensfun-" version ".tar.gz")) | |
307 | (sha256 | |
308 | (base32 | |
309 | "0cfk8jjhs9nbfjfdy98plrj9ayi59aph0nx6ppslgjhlcvacm2xf")))) | |
310 | (build-system cmake-build-system) | |
4dbef239 EF |
311 | (arguments |
312 | `(,@(if (any (cute string-prefix? <> (or (%current-system) | |
313 | (%current-target-system))) | |
314 | '("x86_64" "i686")) | |
315 | ;; SSE and SSE2 are supported only on Intel processors. | |
316 | '() | |
317 | '(#:configure-flags '("-DBUILD_FOR_SSE=OFF" "-DBUILD_FOR_SSE2=OFF"))) | |
318 | #:tests? #f)) ; There are no tests to run. | |
c49840f8 RJ |
319 | (native-inputs |
320 | `(("pkg-config" ,pkg-config))) | |
321 | (inputs | |
322 | `(("glib" ,glib))) | |
323 | (home-page "https://sourceforge.net/projects/lensfun/") | |
324 | (synopsis "Library to correct optical lens defects with a lens database") | |
325 | (description "Digital photographs are not ideal. Of course, the better is | |
326 | your camera, the better the results will be, but in any case if you look | |
327 | carefully at shots taken even by the most expensive cameras equipped with the | |
328 | most expensive lenses you will see various artifacts. It is very hard to make | |
329 | ideal cameras, because there are a lot of factors that affect the final image | |
330 | quality, and at some point camera and lens designers have to trade one factor | |
331 | for another to achieve the optimal image quality, within the given design | |
332 | restrictions and budget. But we all want ideal shots, don't we? So that's | |
333 | what's Lensfun is all about: rectifying the defects introduced by your | |
334 | photographic equipment.") | |
335 | ;; The libraries are licensed under the LGPL3, the programs are | |
336 | ;; licensed GPL3, and the database is license CC-BY-SA 3.0. See the | |
337 | ;; README.md file for this clarification. | |
338 | (license (list license:lgpl3 license:gpl3 license:cc-by-sa3.0)))) | |
91a9c65c RJ |
339 | |
340 | (define-public darktable | |
341 | (package | |
342 | (name "darktable") | |
d83c9fcb | 343 | (version "2.4.4") |
91a9c65c RJ |
344 | (source (origin |
345 | (method url-fetch) | |
346 | (uri (string-append | |
347 | "https://github.com/darktable-org/darktable/releases/" | |
348 | "download/release-" | |
349 | version "/darktable-" version ".tar.xz")) | |
350 | (sha256 | |
351 | (base32 | |
d83c9fcb | 352 | "0kdhmiw4wxk2w9v2hms9yk8nl4ymdshnqyj0l07nivzzr6w20hwn")))) |
91a9c65c RJ |
353 | (build-system cmake-build-system) |
354 | (arguments | |
355 | `(#:tests? #f ; There are no tests. | |
677bc34d | 356 | #:configure-flags '("-DBINARY_PACKAGE_BUILD=On") |
91a9c65c RJ |
357 | #:make-flags |
358 | (list | |
359 | (string-append "CPATH=" (assoc-ref %build-inputs "ilmbase") | |
360 | "/include/OpenEXR:" (or (getenv "CPATH") ""))) | |
361 | #:phases | |
362 | (modify-phases %standard-phases | |
363 | (add-before 'configure 'set-ldflags | |
364 | (lambda* (#:key outputs #:allow-other-keys) | |
365 | (setenv "LDFLAGS" | |
366 | (string-append | |
367 | "-Wl,-rpath=" | |
368 | (assoc-ref outputs "out") "/lib/darktable")) | |
369 | #t))))) | |
370 | (native-inputs | |
371 | `(("llvm" ,llvm-3.9.1) | |
372 | ("clang" ,clang-3.9.1))) | |
373 | (inputs | |
374 | `(("libxslt" ,libxslt) | |
375 | ("libxml2" ,libxml2) | |
376 | ("pugixml" ,pugixml) | |
377 | ("gtk+" ,gtk+) | |
378 | ("sqlite" ,sqlite) | |
379 | ("libjpeg" ,libjpeg) | |
380 | ("libpng" ,libpng) | |
381 | ("cairo" ,cairo) | |
382 | ("lcms" ,lcms) | |
383 | ("exiv2" ,exiv2) | |
384 | ("libtiff" ,libtiff) | |
385 | ("curl" ,curl) | |
386 | ("libgphoto2" ,libgphoto2) | |
387 | ("dbus-glib" ,dbus-glib) | |
388 | ("openexr" ,openexr) | |
389 | ("ilmbase" ,ilmbase) | |
390 | ("libsoup" ,libsoup) | |
391 | ("python-jsonschema" ,python-jsonschema) | |
392 | ("intltool" ,intltool) | |
393 | ("perl" ,perl) | |
394 | ("pkg-config" ,pkg-config) | |
395 | ("libwebp" ,libwebp) | |
396 | ("lensfun" ,lensfun) | |
397 | ("librsvg" ,librsvg) | |
398 | ("json-glib" ,json-glib) | |
399 | ("freeimage" ,freeimage))) | |
400 | (home-page "https://www.darktable.org") | |
401 | (synopsis "Virtual lighttable and darkroom for photographers") | |
402 | (description "Darktable is a photography workflow application and RAW | |
403 | developer. It manages your digital negatives in a database, lets you view | |
404 | them through a zoomable lighttable and enables you to develop raw images | |
405 | and enhance them.") | |
03b055a1 EF |
406 | ;; see src/is_supported_platform.h for supported platforms |
407 | (supported-systems '("i686-linux" "x86_64-linux" "aarch64-linux")) | |
91a9c65c | 408 | (license license:gpl3+))) |
1d093724 AE |
409 | |
410 | (define-public hugin | |
411 | (package | |
412 | (name "hugin") | |
413 | (version "2016.2.0") | |
414 | (source (origin | |
415 | (method url-fetch) | |
416 | (uri (string-append "mirror://sourceforge/hugin/hugin/hugin-" | |
417 | (version-major+minor version) | |
418 | "/hugin-" version ".tar.bz2")) | |
419 | (sha256 | |
420 | (base32 | |
421 | "058zd63vx29yrx2pphbbll7kzcxkai22q26lpw13rn4lvp41pasl")))) | |
422 | (build-system cmake-build-system) | |
423 | (native-inputs | |
424 | `(("gettext" ,gnu-gettext) | |
425 | ("pkg-config" ,pkg-config))) | |
426 | (inputs | |
427 | `(("boost" ,boost) | |
428 | ("enblend-enfuse" ,enblend-enfuse) | |
429 | ("exiv2" ,exiv2) | |
430 | ("fftw" ,fftw) | |
431 | ("flann" ,flann) | |
432 | ("freeglut" ,freeglut) | |
433 | ("glew" ,glew) | |
434 | ("lcms" ,lcms) | |
435 | ("libjpeg" ,libjpeg) | |
436 | ("libpano13" ,libpano13) | |
437 | ("libpng" ,libpng) | |
438 | ("libtiff" ,libtiff) | |
439 | ("libxi" ,libxi) | |
440 | ("libxmu" ,libxmu) | |
441 | ("mesa" ,mesa) | |
442 | ("openexr" ,openexr) | |
443 | ("sqlite" ,sqlite) | |
444 | ("vigra" ,vigra) | |
445 | ("wxwidgets" ,wxwidgets) | |
446 | ("zlib" ,zlib))) | |
447 | (arguments | |
448 | `(#:tests? #f ; no check target | |
449 | #:configure-flags | |
450 | (list | |
451 | ;; The header files of ilmbase (propagated by openexr) are not found | |
452 | ;; when included by the header files of openexr, and an explicit | |
453 | ;; flag needs to be set. | |
454 | (string-append "-DCMAKE_CXX_FLAGS=-I" | |
455 | (assoc-ref %build-inputs "ilmbase") | |
456 | "/include/OpenEXR") | |
457 | ;; Disable installation of the Python scripting interface. | |
458 | ;; It would require the additional inputs python and swig. | |
459 | ;; Installation would need to be tweaked, as it tries to install | |
460 | ;; into the python directory. | |
461 | "-DBUILD_HSI=OFF") | |
462 | #:phases | |
463 | (modify-phases %standard-phases | |
464 | (add-before 'configure 'substitute | |
465 | (lambda _ | |
466 | (substitute* "src/hugin1/base_wx/StitchingExecutor.cpp" | |
467 | (("wxT\\(\"enblend\"\\)") | |
468 | (string-append "wxT(\"" (which "enblend") "\")")) | |
469 | (("wxT\\(\"enfuse\"\\)") | |
470 | (string-append "wxT(\"" (which "enfuse") "\")"))) | |
471 | #t))))) | |
472 | (home-page "http://hugin.sourceforge.net/") | |
473 | (synopsis "Panorama photo stitcher") | |
474 | (description | |
475 | "Hugin is an easy to use panoramic imaging toolchain with a graphical | |
476 | user interface. It can be used to assemble a mosaic of photographs into | |
477 | a complete panorama and stitch any series of overlapping pictures.") | |
478 | (license license:gpl2+))) | |
479 | ||
13d9794d LF |
480 | (define-public rawtherapee |
481 | (package | |
482 | (name "rawtherapee") | |
ab68cbf2 | 483 | (version "5.4") |
13d9794d LF |
484 | (source (origin |
485 | (method url-fetch) | |
486 | (uri (string-append "http://rawtherapee.com/shared/source/" | |
487 | "rawtherapee-" version ".tar.xz")) | |
488 | (sha256 | |
489 | (base32 | |
ab68cbf2 | 490 | "1229hxqq824hcqg1hy2cfglsp7kjbhhis9m33ss39pgmrb1w227d")))) |
13d9794d LF |
491 | (build-system cmake-build-system) |
492 | (arguments | |
493 | '(#:tests? #f ; no test suite | |
3def739d | 494 | #:build-type "release" |
13d9794d LF |
495 | #:configure-flags |
496 | (list (string-append "-DLENSFUNDBDIR=" | |
497 | (assoc-ref %build-inputs "lensfun") | |
498 | "/share/lensfun") | |
13d9794d LF |
499 | ; Don't optimize the build for the host machine. See the file |
500 | ; 'ProcessorTargets.cmake' in the source distribution for more | |
501 | ; information. | |
502 | "-DPROC_TARGET_NUMBER=1" | |
503 | ; These flags are recommended by upstream for distributed packages. | |
504 | ; See the file 'RELEASE_NOTES.txt' in the source distribution. | |
505 | "-O3" | |
506 | "-DCACHE_NAME_SUFFIX=\"\""))) | |
507 | (native-inputs | |
508 | `(("pkg-config" ,pkg-config))) | |
509 | (inputs | |
510 | `(("expat" ,expat) | |
511 | ("fftw" ,fftwf) | |
512 | ("glib" ,glib) | |
513 | ("glibmm" ,glibmm) | |
514 | ("gtk+" ,gtk+) | |
515 | ("gtkmm" ,gtkmm) | |
516 | ("lcms" ,lcms) | |
517 | ("lensfun" ,lensfun) | |
518 | ("libcanberra" ,libcanberra) | |
519 | ("libiptcdata" ,libiptcdata) | |
520 | ("libjpeg" ,libjpeg) | |
521 | ("libpng" ,libpng) | |
522 | ("libsigc++" ,libsigc++) | |
523 | ("libtiff" ,libtiff) | |
524 | ("zlib" ,zlib))) | |
525 | (home-page "http://rawtherapee.com") | |
526 | (synopsis "Raw image developing and processing") | |
527 | (description "RawTherapee is a raw image processing suite. It comprises a | |
528 | subset of image editing operations specifically aimed at non-destructive raw | |
529 | photo post-production and is primarily focused on improving a photographer's | |
530 | workflow by facilitating the handling of large numbers of images. Most raw | |
531 | formats are supported, including Pentax Pixel Shift, Canon Dual-Pixel, and those | |
532 | from Foveon and X-Trans sensors.") | |
533 | (license license:gpl3+))) |