.. _spkg_libgd:

libgd: Dynamic graphics generation tool
=======================================

Description
-----------

GD is an open source code library for the dynamic creation of images by
programmers. GD is written in C, and "wrappers" are available for Perl,
PHP and other languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP
images, among other formats. GD is commonly used to generate charts,
graphics, thumbnails, and most anything else, on the fly. While not
restricted to use on the web, the most common applications of GD involve
website development.

License
-------

-  Custom (BSD-ish)


Upstream Contact
----------------

-  https://libgd.github.io
-  Pierre Joye (http://blog.thepimp.net)
-  http://libgd.bitbucket.org/

Dependencies
------------

-  libpng
-  freetype
-  iconv


Special Update/Build Instructions
---------------------------------

See spkg-src script.

Type
----

standard


Version Information
-------------------

package-version.txt::

    2.3.2


Equivalent System Packages
--------------------------

alpine:
install the following packages: gd fontconfig libXpm libX11 libxcb libXau libXdmcp
arch:

.. CODE-BLOCK:: bash

    $ sudo pacman -S  gd fontconfig libXpm libX11 libxcb libXau libXdmcp

conda:

.. CODE-BLOCK:: bash

    $ conda install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

cygwin:

.. CODE-BLOCK:: bash

    $ apt-cyg install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

Debian/Ubuntu:

.. CODE-BLOCK:: bash

    $ sudo apt-get install  gd fontconfig libXpm libX11 libxcb libXau libXdmcp

Fedora/Redhat/CentOS:

.. CODE-BLOCK:: bash

    $ sudo yum install  gd fontconfig libXpm libX11 libxcb libXau libXdmcp

freebsd:

.. CODE-BLOCK:: bash

    $ sudo pkg install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

gentoo:

.. CODE-BLOCK:: bash

    $ sudo emerge gd fontconfig libXpm libX11 libxcb libXau libXdmcp

homebrew:

.. CODE-BLOCK:: bash

    $ brew install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

macports:
install the following packages: gd fontconfig libXpm libX11 libxcb libXau libXdmcp
nix:

.. CODE-BLOCK:: bash

    $ nix-env --install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

opensuse:

.. CODE-BLOCK:: bash

    $ sudo zypper install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

slackware:

.. CODE-BLOCK:: bash

    $ sudo slackpkg install gd fontconfig libXpm libX11 libxcb libXau libXdmcp

See https://repology.org/project/gd/versions, https://repology.org/project/fontconfig/versions, https://repology.org/project/libXpm/versions, https://repology.org/project/libX11/versions, https://repology.org/project/libxcb/versions, https://repology.org/project/libXau/versions, https://repology.org/project/libXdmcp/versions

If the system package is installed, ./configure will check whether it can be used.

