Commit | Line | Data |
---|---|---|
082b3c6a AE |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr> | |
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 | ||
1ffa7090 | 19 | (define-module (gnu packages libtiff) |
59a43334 | 20 | #:use-module (gnu packages) |
11314eb6 | 21 | #:use-module (gnu packages compression) |
1ffa7090 LC |
22 | #:use-module (gnu packages file) |
23 | #:use-module (gnu packages libjpeg) | |
11314eb6 | 24 | #:use-module ((guix licenses) #:select (bsd-style)) |
082b3c6a AE |
25 | #:use-module (guix packages) |
26 | #:use-module (guix download) | |
27 | #:use-module (guix build-system gnu)) | |
28 | ||
29 | (define-public libtiff | |
30 | (package | |
31 | (name "libtiff") | |
32 | (version "4.0.3") | |
33 | (source (origin | |
34 | (method url-fetch) | |
35 | (uri (string-append "ftp://ftp.remotesensing.org/pub/libtiff/tiff-" | |
36 | version ".tar.gz")) | |
37 | (sha256 (base32 | |
38 | "0wj8d1iwk9vnpax2h29xqc2hwknxg3s0ay2d5pxkg59ihbifn6pa")))) | |
39 | (build-system gnu-build-system) | |
c4c4cc05 | 40 | (inputs `(("zlib" ,zlib) |
082b3c6a AE |
41 | ("libjpeg-8" ,libjpeg-8))) |
42 | ;; currently does not compile with libjpeg version 9 | |
c4c4cc05 | 43 | (native-inputs `(("file" ,file))) |
082b3c6a AE |
44 | (arguments |
45 | `(#:configure-flags | |
46 | (list (string-append "--with-jpeg-include-dir=" | |
47 | (assoc-ref %build-inputs "libjpeg-8") | |
48 | "/include")) | |
49 | #:phases | |
d4bf49b1 EB |
50 | (alist-cons-before |
51 | 'configure 'patch-configure | |
52 | (lambda _ | |
53 | (substitute* "configure" | |
54 | (("`/usr/bin/file") | |
55 | (string-append "`" (which "file"))))) | |
082b3c6a AE |
56 | %standard-phases))) |
57 | (synopsis "Libtiff, a library for handling TIFF files") | |
58 | (description | |
59 | "Libtiff provides support for the Tag Image File Format (TIFF), a format | |
60 | used for storing image data. | |
61 | Included are a library, libtiff, for reading and writing TIFF and a small | |
62 | collection of tools for doing simple manipulations of TIFF images.") | |
63 | (license (bsd-style "file://COPYRIGHT" | |
64 | "See COPYRIGHT in the distribution.")) | |
65 | (home-page "http://www.libtiff.org/"))) |