guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: Add libgd.


From: guix-commits
Subject: 01/01: gnu: Add libgd.
Date: Thu, 20 Jun 2019 04:09:34 -0400 (EDT)

ngz pushed a commit to branch master
in repository guix.

commit 059e4c9a15b52f7e4b262e3317eac238bf53103d
Author: Nicolas Goaziou <address@hidden>
Date:   Thu Jun 20 10:09:17 2019 +0200

    gnu: Add libgd.
    
    * gnu/packages/image.scm (libgd): New variable.
---
 gnu/packages/image.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index f9709e2..1f6327a 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -23,6 +23,7 @@
 ;;; Copyright © 2018 Pierre-Antoine Rouby <address@hidden>
 ;;; Copyright © 2018 Alex Vong <address@hidden>
 ;;; Copyright © 2018 Rutger Helling <address@hidden>
+;;; Copyright © 2019 Nicolas Goaziou <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1648,3 +1649,55 @@ identical visual appearance.")
 to the standard output.  It works well together with grim.")
    ;; MIT license.
    (license license:expat)))
+
+(define-public libgd
+  (package
+    (name "libgd")
+    (version "2.2.5")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/libgd/libgd.git";)
+                    (commit (string-append "gd-" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "17p0dlmn9kigr5b7vgpcsq2323mrgv0rh69x4ysg8nrjl8n5l1nl"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "-DBUILD_TEST=1"
+             "-DENABLE_FONTCONFIG=1"
+             "-DENABLE_FREETYPE=1"
+             "-DENABLE_JPEG=1"
+             "-DENABLE_PNG=1"
+             "-DENABLE_WEBP=1"
+             "-DENABLE_XPM=1"
+             (string-append "-DFREETYPE_INCLUDE_DIRS="
+                            (assoc-ref %build-inputs "freetype")
+                            "/include/freetype2"))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("fontconfig" ,fontconfig)
+       ("freetype" ,freetype)
+       ("libjpeg" ,libjpeg)
+       ("libpng" ,libpng)
+       ("libwebp" ,libwebp)
+       ("libxmp" ,libxpm)
+       ("zlib" ,zlib)))
+    (home-page "https://libgd.github.io/";)
+    (synopsis "GD Graphics Library")
+    (description "gd is a graphics library.  It allows your code to
+quickly draw images complete with lines, arcs, text, multiple colors,
+cut and paste from other images, and flood fills, and write out the
+result as a PNG or JPEG file.  This is particularly useful in World
+Wide Web applications, where PNG and JPEG are two of the formats
+accepted for inline images by most browsers.")
+    ;; The project is released under a free license, which require
+    ;; that its terms are present in "user-accessible supporting
+    ;; documentation".  Some files (mainly related to CMake) use
+    ;; alternatively GPL2+ and BSD-3 licenses.
+    (license (list (license:non-copyleft "file:///COPYING")
+                   license:gpl2+
+                   license:bsd-3))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]