2014-01-15 21:47:55 +00:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2015-01-07 08:44:10 +00:00
|
|
|
;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
2015-09-01 19:36:32 +00:00
|
|
|
;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
|
2015-09-04 17:26:07 +00:00
|
|
|
;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
|
2014-01-15 21:47:55 +00:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu packages photo)
|
2015-09-05 16:41:27 +00:00
|
|
|
#:use-module (guix build-system cmake)
|
2014-01-15 21:47:55 +00:00
|
|
|
#:use-module (guix build-system gnu)
|
2014-11-08 21:24:08 +00:00
|
|
|
#:use-module (guix build-system perl)
|
2015-09-04 17:28:26 +00:00
|
|
|
#:use-module (guix download)
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
#:use-module (guix packages)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (guix utils)
|
2014-01-15 21:47:55 +00:00
|
|
|
#:use-module (gnu packages autotools)
|
2015-09-04 17:28:26 +00:00
|
|
|
#:use-module (gnu packages base)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (gnu packages boost)
|
2015-09-05 16:41:27 +00:00
|
|
|
#:use-module (gnu packages compression)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (gnu packages ghostscript)
|
|
|
|
#:use-module (gnu packages gl)
|
|
|
|
#:use-module (gnu packages graphics)
|
2015-09-05 16:41:27 +00:00
|
|
|
#:use-module (gnu packages image)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (gnu packages imagemagick)
|
2015-09-04 17:28:26 +00:00
|
|
|
#:use-module (gnu packages libusb)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (gnu packages maths)
|
2014-11-08 21:24:08 +00:00
|
|
|
#:use-module (gnu packages perl)
|
2015-09-04 17:28:26 +00:00
|
|
|
#:use-module (gnu packages pkg-config)
|
|
|
|
#:use-module (gnu packages popt)
|
2015-09-06 21:12:51 +00:00
|
|
|
#:use-module (gnu packages readline)
|
|
|
|
#:use-module (gnu packages web)
|
|
|
|
#:use-module (gnu packages xfig)
|
|
|
|
#:use-module (gnu packages xml))
|
2014-01-15 21:47:55 +00:00
|
|
|
|
2015-09-01 19:36:32 +00:00
|
|
|
(define-public libraw
|
|
|
|
(package
|
|
|
|
(name "libraw")
|
|
|
|
(version "0.17.0")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "http://www.libraw.org/data/LibRaw-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"043kckxjqanw8dl3m9f6kvsf0l20ywxmgxd1xb0slj6m8l4w4hz6"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://www.libraw.org")
|
|
|
|
(synopsis "Raw image decoder")
|
|
|
|
(description
|
|
|
|
"LibRaw is a library for reading RAW files obtained from digital photo
|
|
|
|
cameras (CRW/CR2, NEF, RAF, DNG, and others).")
|
2015-09-04 17:26:07 +00:00
|
|
|
(license license:lgpl2.1+)))
|
2015-09-01 19:36:32 +00:00
|
|
|
|
2014-01-15 21:47:55 +00:00
|
|
|
(define-public libexif
|
|
|
|
(package
|
|
|
|
(name "libexif")
|
|
|
|
(version "0.6.21")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/libexif/libexif-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"06nlsibr3ylfwp28w8f5466l6drgrnydgxrm4jmxzrmk5svaxk8n"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(home-page "http://libexif.sourceforge.net/")
|
|
|
|
(synopsis "Read and manipulate EXIF data in digital photographs")
|
|
|
|
(description
|
|
|
|
"The libexif C library allows applications to read, edit, and save EXIF
|
|
|
|
data as produced by digital cameras.")
|
2015-09-04 17:26:07 +00:00
|
|
|
(license license:lgpl2.1+)))
|
2014-01-15 21:47:55 +00:00
|
|
|
|
|
|
|
(define-public libgphoto2
|
|
|
|
(package
|
|
|
|
(name "libgphoto2")
|
|
|
|
(version "2.5.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gphoto/libgphoto2-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"0f1818l1vs5fbmrihzyv3qasddbqi3r01jik5crrxddwalsi2bd3"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(;; ("libjpeg-turbo" ,libjpeg-turbo)
|
2015-01-07 08:44:10 +00:00
|
|
|
("libltdl" ,libltdl)
|
2014-01-15 21:47:55 +00:00
|
|
|
("libusb" ,libusb)))
|
|
|
|
(propagated-inputs
|
|
|
|
`(;; The .pc refers to libexif.
|
|
|
|
("libexif" ,libexif)))
|
|
|
|
(home-page "http://www.gphoto.org/proj/libgphoto2/")
|
|
|
|
(synopsis "Accessing digital cameras")
|
|
|
|
(description
|
|
|
|
"This is the library backend for gphoto2. It contains the code for PTP,
|
|
|
|
MTP, and other vendor specific protocols for controlling and transferring data
|
|
|
|
from digital cameras.")
|
|
|
|
|
|
|
|
;; 'COPYING' says LGPLv2.1+, but in practices files are under LGPLv2+.
|
2015-09-04 17:26:07 +00:00
|
|
|
(license license:lgpl2.1+)))
|
2014-01-15 21:47:55 +00:00
|
|
|
|
|
|
|
(define-public gphoto2
|
|
|
|
(package
|
|
|
|
(name "gphoto2")
|
|
|
|
(version "2.5.2")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/gphoto/gphoto2-"
|
|
|
|
version ".tar.bz2"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"16c8k1cxfypg7v5h8xi87grclw7a5ayaamn548ys3zkj727r5fcf"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)))
|
|
|
|
(inputs
|
|
|
|
`(("readline" ,readline)
|
|
|
|
;; ("libjpeg-turbo" ,libjpeg-turbo)
|
|
|
|
("popt" ,popt)
|
|
|
|
("libexif" ,libexif)
|
|
|
|
("libgphoto2" ,libgphoto2)))
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-cons-before
|
|
|
|
'check 'pre-check
|
|
|
|
(lambda* (#:key inputs #:allow-other-keys)
|
|
|
|
(substitute* (find-files "tests/data" "\\.param$")
|
|
|
|
(("/usr/bin/env")
|
|
|
|
(which "env"))))
|
|
|
|
%standard-phases)
|
|
|
|
|
|
|
|
;; FIXME: There are 2 test failures, most likely related to the build
|
|
|
|
;; environment.
|
|
|
|
#:tests? #f))
|
|
|
|
|
|
|
|
(home-page "http://www.gphoto.org/")
|
|
|
|
(synopsis "Command-line tools to access digital cameras")
|
|
|
|
(description
|
|
|
|
"Gphoto2 is a set of command line utilities for manipulating a large
|
|
|
|
number of different digital cameras. Through libgphoto2, it supports PTP,
|
|
|
|
MTP, and much more.")
|
|
|
|
|
|
|
|
;; Files are typically under LGPLv2+, but 'COPYING' says GPLv2+.
|
2015-09-04 17:26:07 +00:00
|
|
|
(license license:gpl2+)))
|
2014-11-08 21:24:08 +00:00
|
|
|
|
|
|
|
(define-public perl-image-exiftool
|
|
|
|
(package
|
|
|
|
(name "perl-image-exiftool")
|
|
|
|
(version "9.70")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append
|
|
|
|
"mirror://cpan/authors/id/E/EX/EXIFTOOL/Image-ExifTool-"
|
|
|
|
version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"074yxjgy50iacnjakdvac37wvrzrqmabkn0nzk0n70y3hssli7d5"))))
|
|
|
|
(build-system perl-build-system)
|
|
|
|
(arguments
|
|
|
|
'(#:phases (alist-cons-after
|
|
|
|
'install 'post-install
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
;; Make sure the 'exiftool' commands finds the library.
|
|
|
|
;; XXX: Shouldn't it be handled by PERL-BUILD-SYSTEM?
|
|
|
|
(let* ((out (assoc-ref outputs "out"))
|
|
|
|
(pm (find-files out "^ExifTool\\.pm$"))
|
|
|
|
(lib (dirname (dirname (car pm)))))
|
|
|
|
(wrap-program (string-append out "/bin/exiftool")
|
|
|
|
`("PERL5LIB" prefix (,lib)))))
|
|
|
|
%standard-phases)))
|
|
|
|
(home-page
|
|
|
|
"http://search.cpan.org/~exiftool/Image-ExifTool-9.70/lib/Image/ExifTool.pod")
|
|
|
|
(synopsis "Program and Perl library to manipulate EXIF tags")
|
|
|
|
(description
|
|
|
|
"This package provides the 'exiftool' command and the 'Image::ExifTool'
|
|
|
|
Perl library to manipulate EXIF tags of digital images.")
|
|
|
|
(license (package-license perl))))
|
2015-09-05 16:41:27 +00:00
|
|
|
|
|
|
|
(define-public libpano13
|
|
|
|
(package
|
|
|
|
(name "libpano13")
|
|
|
|
(version "2.9.19")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/panotools/libpano13/"
|
|
|
|
"libpano13-" version "/"
|
|
|
|
"libpano13-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1a4m3plmfcrrplqs9zfzhc5apibn10m5sajpizm1sd3q74w5fwq3"))))
|
|
|
|
(build-system cmake-build-system)
|
|
|
|
(inputs
|
|
|
|
`(("libjpeg" ,libjpeg)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(home-page "http://panotools.sourceforge.net/")
|
|
|
|
(synopsis "Library for panoramic images")
|
|
|
|
(description
|
|
|
|
"The libpano13 package contains the backend library written by the
|
|
|
|
Panorama Tools project for building panoramic images from a set of
|
|
|
|
overlapping images, as well as some command line tools.")
|
|
|
|
(license license:gpl2+)))
|
2015-09-06 21:12:51 +00:00
|
|
|
|
|
|
|
(define-public enblend-enfuse
|
|
|
|
(package
|
|
|
|
(name "enblend-enfuse")
|
|
|
|
(version "4.1.3")
|
|
|
|
(source (origin
|
|
|
|
(method url-fetch)
|
|
|
|
(uri (string-append "mirror://sourceforge/enblend/"
|
|
|
|
name "/"
|
|
|
|
name "-" (version-major+minor version) "/"
|
|
|
|
name "-" version ".tar.gz"))
|
|
|
|
(sha256
|
|
|
|
(base32
|
|
|
|
"1b7r1nnwaind0344ckwggy0ghl0ipbk9jzylsxcjfl05rnasw00w"))))
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
(native-inputs
|
|
|
|
`(("pkg-config" ,pkg-config)
|
|
|
|
("perl" ,perl)
|
|
|
|
("perl-timedate" ,perl-timedate)
|
|
|
|
;; for building the documentation
|
|
|
|
("gnuplot" ,gnuplot)
|
|
|
|
("imagemagick" ,imagemagick)
|
|
|
|
("libxml2" ,libxml2)
|
|
|
|
("tidy" ,tidy)
|
|
|
|
("transfig" ,transfig)))
|
|
|
|
(inputs
|
|
|
|
`(("boost" ,boost)
|
|
|
|
("gsl" ,gsl)
|
|
|
|
("lcms" ,lcms)
|
|
|
|
("libjpeg" ,libjpeg)
|
|
|
|
("libpng" ,libpng)
|
|
|
|
("libtiff" ,libtiff)
|
|
|
|
("openexr" ,openexr)
|
|
|
|
("vigra" ,vigra)
|
|
|
|
("zlib" ,zlib)))
|
|
|
|
(arguments
|
|
|
|
`(#:configure-flags `("--enable-openmp")))
|
|
|
|
(home-page "http://enblend.sourceforge.net/")
|
|
|
|
(synopsis "Tools for combining and blending images")
|
|
|
|
(description
|
|
|
|
"Enblend blends away the seams in a panoramic image mosaic using a
|
|
|
|
multi-resolution spline. Enfuse merges different exposures of the same
|
|
|
|
scene to produce an image that looks much like a tone-mapped image.")
|
|
|
|
(license license:gpl2+)))
|