Commit | Line | Data |
---|---|---|
4b5f8cde 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 libjpeg) |
59a43334 | 20 | #:use-module (gnu packages) |
4b5f8cde AE |
21 | #:use-module (guix licenses) |
22 | #:use-module (guix packages) | |
23 | #:use-module (guix download) | |
24 | #:use-module (guix build-system gnu)) | |
25 | ||
26 | (define-public libjpeg | |
27 | (package | |
28 | (name "libjpeg") | |
29 | (version "9") | |
30 | (source (origin | |
31 | (method url-fetch) | |
32 | (uri (string-append "http://www.ijg.org/files/jpegsrc.v" | |
33 | version ".tar.gz")) | |
34 | (sha256 (base32 | |
35 | "0dg5wxcx3cw0hal9gvivj97vid9z0s5sb1yvg55hpxmafn9rxqn4")))) | |
36 | (build-system gnu-build-system) | |
37 | (synopsis "Libjpeg, a library for handling JPEG files") | |
38 | (description | |
39 | "Libjpeg implements JPEG image encoding, decoding, and transcoding. | |
40 | JPEG is a standardized compression method for full-color and gray-scale | |
41 | images. | |
42 | The included programs provide conversion between the JPEG format and | |
43 | image files in PBMPLUS PPM/PGM, GIF, BMP, and Targa file formats.") | |
44 | (license ijg) | |
45 | (home-page "http://www.ijg.org/"))) | |
1d974417 AE |
46 | |
47 | (define-public libjpeg-8 | |
48 | (package (inherit libjpeg) | |
1d974417 AE |
49 | (version "8d") |
50 | (source (origin | |
51 | (method url-fetch) | |
52 | (uri (string-append "http://www.ijg.org/files/jpegsrc.v" | |
53 | version ".tar.gz")) | |
54 | (sha256 (base32 | |
55 | "1cz0dy05mgxqdgjf52p54yxpyy95rgl30cnazdrfmw7hfca9n0h0")))))) | |
56 |