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