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.
 
 
 
 
 
 

53 lines
2.1 KiB

  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. (define-module (gnu packages libpng)
  19. #:use-module (gnu packages)
  20. #:use-module (gnu packages compression)
  21. #:use-module ((guix licenses) #:renamer (symbol-prefix-proc 'license:))
  22. #:use-module (guix packages)
  23. #:use-module (guix download)
  24. #:use-module (guix build-system gnu))
  25. (define-public libpng
  26. (package
  27. (name "libpng")
  28. (version "1.5.17")
  29. (source (origin
  30. (method url-fetch)
  31. ;; Note: upstream removes older tarballs.
  32. (uri (list (string-append "mirror://sourceforge/libpng/libpng15/"
  33. version "/libpng-" version ".tar.xz")
  34. (string-append
  35. "ftp://ftp.simplesystems.org/pub/libpng/png/src"
  36. "/libpng15/libpng-" version ".tar.xz")))
  37. (sha256
  38. (base32 "19wj293r4plbfgb43yhrc2qx8bsch9gbazazfqrj9haa7lsk29jp"))))
  39. (build-system gnu-build-system)
  40. ;; libpng.la says "-lz", so propagate it.
  41. (propagated-inputs `(("zlib" ,zlib)))
  42. (synopsis "Library for handling PNG files")
  43. (description
  44. "Libpng is the official PNG (Portable Network Graphics) reference
  45. library. It supports almost all PNG features and is extensible.")
  46. (license license:zlib)
  47. (home-page "http://www.libpng.org/pub/png/libpng.html")))