You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

72 lines
2.8 KiB

  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. (define-module (gnu packages gd)
  19. #:use-module (guix packages)
  20. #:use-module (guix build-system gnu)
  21. #:use-module (guix download)
  22. #:use-module (gnu packages)
  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. (define-public gd
  29. (package
  30. (name "gd")
  31. ;; Note: With libgd.org now pointing to bitbucket.org, genuine old
  32. ;; tarballs are no longer available. Notably, versions 2.0.34 and .35 are
  33. ;; missing.
  34. (version "2.0.33")
  35. (source (origin
  36. (method url-fetch)
  37. (uri "https://bitbucket.org/libgd/gd-libgd/get/GD_2_0_33.tar.gz")
  38. (sha256
  39. (base32
  40. "0yrbx8mj9pykyzm0zl1q86xlkdvkajcsf5jmg688vhw9yc5wmbbw"))
  41. (patches
  42. (list (search-patch "gd-mips64-deplibs-fix.patch")))))
  43. (build-system gnu-build-system)
  44. (arguments
  45. '(#:phases (alist-cons-after
  46. 'unpack 'chdir
  47. (lambda _
  48. (chdir "src"))
  49. %standard-phases)))
  50. (inputs
  51. `(("freetype" ,freetype)
  52. ("libpng" ,libpng)
  53. ("zlib" ,zlib)))
  54. (propagated-inputs
  55. `(("fontconfig" ,fontconfig)
  56. ("libjpeg" ,libjpeg)))
  57. (home-page "http://www.libgd.org/")
  58. (synopsis "Library for the dynamic creation of images by programmers")
  59. (description
  60. "GD is a library for the dynamic creation of images by programmers. GD
  61. is written in C, and \"wrappers\" are available for Perl, PHP and other
  62. languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other
  63. formats. GD is commonly used to generate charts, graphics, thumbnails, and
  64. most anything else, on the fly. While not restricted to use on the web, the
  65. most common applications of GD involve website development.")
  66. (license (bsd-style "file://COPYING"
  67. "See COPYING file in the distribution."))))