gnu: libmad: Fix MIPS assembler code to work with new GCC.
[jackhill/guix/guix.git] / gnu / packages / gd.scm
CommitLineData
d517142b
LC
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
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
19(define-module (gnu packages gd)
20 #:use-module (guix packages)
21 #:use-module (guix build-system gnu)
22 #:use-module (guix download)
23 #:use-module (gnu packages libpng)
24 #:use-module (gnu packages libjpeg)
25 #:use-module (gnu packages fontutils)
26 #:use-module (gnu packages compression)
27 #:use-module ((guix licenses) #:select (bsd-style)))
28
29(define-public gd
30 (package
31 (name "gd")
32
33 ;; Note: With libgd.org now pointing to bitbucket.org, genuine old
34 ;; tarballs are no longer available. Notably, versions 2.0.34 and .35 are
35 ;; missing.
36 (version "2.0.33")
37
38 (source (origin
39 (method url-fetch)
40 (uri "https://bitbucket.org/libgd/gd-libgd/get/GD_2_0_33.tar.gz")
41 (sha256
42 (base32
43 "0yrbx8mj9pykyzm0zl1q86xlkdvkajcsf5jmg688vhw9yc5wmbbw"))))
44 (build-system gnu-build-system)
45 (arguments
46 '(#:phases (alist-cons-after
47 'unpack 'chdir
48 (lambda _
49 (chdir "src"))
50 %standard-phases)))
51 (inputs
52 `(("freetype" ,freetype)
53 ("libpng" ,libpng)
54 ("zlib" ,zlib)))
55 (propagated-inputs
56 `(("fontconfig" ,fontconfig)
57 ("libjpeg" ,libjpeg)))
58 (home-page "http://www.libgd.org/")
59 (synopsis "Library for the dynamic creation of images by programmers")
60 (description
61 "GD is a library for the dynamic creation of images by programmers. GD
62is written in C, and \"wrappers\" are available for Perl, PHP and other
63languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other
64formats. GD is commonly used to generate charts, graphics, thumbnails, and
65most anything else, on the fly. While not restricted to use on the web, the
66most common applications of GD involve website development.")
67 (license (bsd-style "file://COPYING"
68 "See COPYING file in the distribution."))))