CVE and update status of the FreeBSD ports tree3,295 unaddressed CVEs in 670 portsAll times are CET
Port details

graphics/gd 2.3.3_13,1

Graphics library for fast creation of images

Port info

Maintainer
dinoex@FreeBSD.org
Packages
latest: 2.3.3_13,1
Upstream
up to date
Last update
to 2.3.3_13,1 · 974099d0bd
Quarterly
2026Q4: 2.3.3_13,1
Formerly
graphics/gd-nox11 until 2003-08-19, graphics/gd2 until 2003-08-19
WWW
https://libgd.github.io/
Links
cgit · VuXML · Report wrong data

Install

Package
# pkg install libgd
installs 2.3.3_13,1 from latest; from quarterly (2026Q4) 2.3.3_13,1
Port
# cd /usr/ports/graphics/gd && make install clean
# make -C /usr/ports/graphics/gd config  # change options first
Size
223 KiB download · 1.6 MiB installed
Depends on
graphics/jpeg-turbo 3.1.4.1, graphics/png 1.6.59_1, graphics/tiff 4.7.2, graphics/webp 1.6.0, print/freetype2 2.14.3, x11-fonts/fontconfig 2.18.3,1
License
MIT
Options
7 of 13 on in the package: FONTCONFIG FREETYPE ICONV JPEG PNG TIFF WEBP
Show the 6 options that are off
AVIF HEIF LIQ RAQM THREADS XPM

Packages by version and architecture

latest

FreeBSD versionamd64aarch64i386
FreeBSD 162.3.3_13,12.3.3_13,1–
FreeBSD 152.3.3_13,12.3.3_13,1–
FreeBSD 142.3.3_13,12.3.3_13,12.3.3_13,1

quarterly (2026Q4)

FreeBSD versionamd64aarch64i386
FreeBSD 152.3.3_13,12.3.3_13,1–
FreeBSD 142.3.3_13,12.3.3_13,12.3.3_13,1

version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.

Unaddressed and VuXML only (0)

No unaddressed CVE and nothing reported by pkg audit for the packaged version 2.3.3_13,1.

Fixed (2)

Show 2 fixed
VuXML entries whose affected range the packaged version has left.

Problem reports (0) · open in Bugzilla, most recently changed first

None.

Commits (213)

Mikhail Teterin (mi) · 1.8.4_5
This will build with any -lfreetype, any -ljpeg, and any -lpng. Remove the major version numbers from LIB_DEPENDS...
746c474335
Maxim Sobolev (sobomax) · 1.8.4_5
Update version number of freetype2 shared library.
6cd76ded7b
Mikhail Teterin (mi) · 2.0.1 · as graphics/gd2
Fix a typo, that prevented my clever font substitution scheme from working...
0d60d8e4c0
Patrick Li (pat) · 2.0.1 · as graphics/gd2
Fix depends for freetype

PR:		33759
Submitted by:	Oliver Lehmann <lehmann@ans-netz.de>, bento
83ebb89931
Mikhail Teterin (mi) · 2.0.1 · as graphics/gd2
Add the ability  to pass a list  of alternative bdf fonts  to this port. This  can be  used  to generalize  building  of, say,  language-specific versions of gd like ukrainian/gd -- the controlling port will simply set GD_FONTS to something like

GD_FONTS="/usr/ports/distfiles/x-koi8u.tgz koi6x10.bdf koi8x13.bdf \
	koi9x15.bdf koi12x24.bdf koi10x20.bdf"

And the new configure script will extract the bdf files from the tarball
and use the bdftogd perl script (bundled with the software) to regenerate
the sources.

No REVISION bump, because the default package is still the same...
1a79aa3205
John Hay (jhay) · 1.8.4_5
Fix the diff so that it actually apply. The original source should be used when generating a diff. This should get make release a bit further again.
27179ddde6
Mario Sergio Fujikawa Ferreira (lioux) · 1.8.4_5
- Respect CFLAGS properly - Fix compilation error when both freetype and freetype2 are installed - Fix Xpm support - Use freetype-config to find both include and library path - Port style changes in Makefile - Generic fix for -current malloc.h issue

PR:		32854
Submitted by:	KATO Tsuguru <tkato@prontomail.com>
460774c383
Peter Pentchev (roam) · 2.0.1 · as graphics/gd2
Fix the build when NOPROFILE is not defined in /etc/make.conf or in the build environment.

PR:		31698
Submitted by:	John Hildreth <partsman@ns2.slutpuppy.org> (to -ports)
Submitted by:	Kirk Strauser <kirk@strauser.com> (the PR)
Approved by:	mi
fe4e8fe800
Mikhail Teterin (mi) · 2.0.1 · as graphics/gd2
Both -- include and include/X11 might be needed...
ca49092319
Peter Pentchev (roam) · 1.8.4_4
Install the HTML documentation.

Approved by:	silence on -ports
68b00bd839
Ying-Chieh Liao (ijliao) · 1.8.4_3
back out last commit, let others decide what to do
c1aa304ed5
Ying-Chieh Liao (ijliao) · 1.8.4_3
typo
79948b5210
Ying-Chieh Liao (ijliao) · 1.8.4_3
XFree86-4 installs freetype.6, freetype2 installs freetype.7 so we have to use "freetype.7" instead of just "freetype"

Reported by:	Mike Harding <mvh@ix.netcom.com>
9adc91f01a
Mikhail Teterin (mi) · 2.0.1 · as graphics/gd2
Upgrade to 2.0.1 (gd2 was repocopied from gd). The name of the installed library is still libgd, which is on purpose. It looks like very little needs to be done after all to make current gd users switch, so gd2 will, hopefully, quickly become gd again.

XPM will be used by default now, unless WITHOUT_XPM is declared.
When XPM can be built without installing X11, this is seems
sensible.
d52a7a070a
Andrey A. Chernov (ache) · 1.8.4_3
Bump png major
b60160c5d8
Akinori MUSHA (knu) · 1.8.4_3
Conditionalize the dependency on bzip2.

De-portlint a bit.
63a15f2970
Mikhail Teterin (mi) · 1.8.4_3
LIB_DEPEND on freetype again (regardless of version, what comes with XFree86-4 should work too). I could've  sworn, I saw some other port use  the seemingly  non-existent USE_FREETYPE2.  As a  bonus, add  a patch for malloc.h -> stdlib.h...

While I'm here (again), switch the default maintainership to ports@.

Submitted by:	John Hay
dc74024472
Mikhail Teterin (mi) · 1.8.4_3
Use USE_FREETYPE2 instead of explicitly depending on freetype-config.
5e502b4289
Mikhail Teterin (mi) · 1.8.4_3
Restore the ability to _read_ gif images, removed by the author due to fear of Unisys... Bump up PORTREVISION.

Approved by:	maintainer timeout :( (since July 27)
1a136774b6
Maxim Sobolev (sobomax) · 1.8.4_2
Update version number of freetype2 shared library.
495daa29cc
Ade Lovett (ade) · 1.8.4_2
Various patches (mainly shared library revision changes) for those ports that depend on GNOME and need to change for 1.4
bc47cccc84
Maxim Sobolev (sobomax) · 1.8.4_1
Ensure that the freetype-config is available. This should workaround the XFree86-4 + freetype2 problem. This is not a final solution and provided only for forthcoming 4.3 release, after which it will be removed.

We are still waiting for jmz to fix things properly.
2a1e03477c
Bill Fumerola (billf) · 1.8.4_1
The clown^Wauthor of gd once again changed the contents of the tarball without bumping the minor version number. update patches and checksum accordingly.

Our PORTREVISION was bumped, however, because we actually do have a clue
about these sorts of things...
cef70df629
Akinori MUSHA (knu) · 1.8.4
Update the checksum.  Seems the distfile was updated with a new one that does not include *.o files.

Submitted by:	Mike Harding <mvh@ix.netcom.com>
6a5b7af6e6
Akinori MUSHA (knu) · 1.8.4
Make japanese/gd a slave port of graphics/gd.

Approved by:	ichiro@ichiro.org (MAINTAINER of japanese/gd)
8e185a18bb
Akinori MUSHA (knu) · 1.8.4
Update to 1.8.4.

Add MASTER_SITE_RINGSERVER to MASTER_SITES.

Add a couple of patches to complete GD's Japanese support.

PR:		ports/24930
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>, knu
Approved by:	billf (MAINTAINER)
a128c373e6
Maxim Sobolev (sobomax) · 1.8.3
Massive style enforcement - use ^I instead of spaces for variables identation.
2b1a883dc4
Vanilla I. Shu (vanilla) · 1.8.3
Compile with freetype default.

Approved by:	billf
f52f02f515
Satoshi Asami (asami) · 1.8.3
(1) Add new variable, XFREE86_VERSION, to specify which version of     XFree86 (3 or 4) to depend to when USE_XLIB is set.     XFREE86_VERSION defaults to 3 for now, but adventurous users can     override it in /etc/make.conf.  When XFREE86_VERSION=3, USE_XLIB     will add a dependency to x11/XFree86; when it is set to 4, the     dependency will be to x11/XFree86-4-libraries.  When     XFREE86_VER

Since XFree86 version 4 includes some software that used to be
    separate ports, when XFREE86_VERSION=3 the following variables are
    provided:

    USE_DGS		LIB_DEPENDS on x11/dgs
    USE_FREETYPE	LIB_DEPENDS on print/freetype
    USE_MESA		LIB_DEPENDS on graphics/Mesa3
    USE_XPM		LIB_DEPENDS on graphics/xpm

    When XFREE86_VERSION=4, these variables have no effect.  The
    LIB_DEPENDS in the tree for the above four ports have all been
    converted to the USE_* counterparts.  For your information, this
    is the count of the number of ports:

    USE_DGS		0
    USE_FREETYPE	16
    USE_MESA		36
    USE_XPM		236

    There is a new variable, XAWVER, which is set to 6 when
    XFREE86_VERSION=3 and 7 when XFREE86_VERSION=4.  This is also
    passed to PLIST_SUB so ports that build Xaw based shared libraries
    can use this variable to substitute the shlib version number.

    There is also a provision of using a separate mtree file for
    XFREE86_VERSION=4, but that part is not enabled yet.

Reviewed by:	the ports list
Tested by:	make index (XFREE86_VERSION=3 only)

(2) Add hebrew to list of valid categories.
Submitted by:	nbm
c6bcad2436
Maxim Sobolev (sobomax) · 1.8.3
Bump png shared library version.

Submitted by:	Hajimu UMEMOTO <ume@mahoroba.org>
6db96c0500
Satoshi Asami (asami) · 1.8.3
Rename INSTALLS_SHLIBS to INSTALLS_SHLIB.  (There was a typo in the previous commit message to bsd.port.mk, which said INSTALL_SHLIBS.  Boo.)

Line up the rhs of variable assignments nicely.  Remove a couple of extra
whitespaces while I'm here.

Suggested by:	 sobomax
ffb21b5654
Maxim Sobolev (sobomax) · 1.8.3
Final round of the INSTALLS_SHLIBS=yes conversion. Few remaining ports with ldconfig in PLIST need personal consideration.
5178b48938
Bill Fumerola (billf) · 1.8.3
Add missing "$"

Submitted by:	Andrzej Tobola <san@tmp.iem.pw.edu.pl>
a4d8441524
Will Andrews (will) · 1.8.3
Change library number to gd.1 per porter's handbook.

PR:		19060
Submitted by:	Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
0968e6bccd
Bill Fumerola (billf) · 1.8.3
The incredibly intelligent people who release engineer gd once again bumped the version number and went back and made all the old tarballs copies of the the newest version, breaking this again.

They also zerobyted a lot of old versions of gd. Evidently "history" isn't
one of the ideas thats supported in their project.

Submitted by:	jkh
e48df57040
Bill Fumerola (billf) · 1.8.2
The people who release gd think that removing old versions of gd and replacing them with symlinks to the latest is smart, so we'll upgrade now.

patches/patch-ac changed and was regenerated with -u1 so when the authors
make more gratuitious changes to the Makefile it will break less deltas.
e8d67e876a
Jeremy Lea (reg) · 1.8.1
Standardize all user defined options to the booleans WITH_FOO and WITHOUT_FOO.  Begin the process of reserving these prefixes for user defined options.

No comment by:	ports
877b8a533b
Satoshi Asami (asami) · 1.8.1
Convert to PORTNAME/PORTVERSION.  lfview had an invalid version string so I fixed it.
c99c600944
Bill Fumerola (billf)
Upgrade to 1.8.1 which should shrink my mailbox and the PR system.
6c4d8b3e72
Bill Fumerola (billf)
Upgrade to gd 1.8, with shiny new jpeg support.
6939e577e2
Bill Fumerola (billf)
-DWANT_X11 is now required to build this port with X support. You no longer have to install X in order to have a decent web server.
680b9935f2
Bill Fumerola (billf)
Take over maintainership of this port (was ports@freebsd.org). There are quite a few things this port is doing wrong or poorly and I plan to fix that.
26414295e4
Steve Price (steve)
Build and install the shared library again.

PR:		15313
Submitted by:	Ade Lovett <ade@lovett.com>
5cb55aa139
Steve Price (steve)
Add ttf and xpm support to this port.

PR:		15437
Submitted by:	Igor Vinokurov <igor@zynaps.ru>
96e917f705
Steve Price (steve)
Update to version 1.7.3.

PR:		14518
Submitted by:	Ade Lovett <ade@lovett.com>
cb8e819414
Bill Fenner (fenner)
Remove Jeff Wheat as maintainer at his request.
bd05a364ba
Satoshi Asami (asami)
Add master site.  portlint now complains that it's 26 lines long, but I don't know where to cleave.
8e00b8d814
Bill Fumerola (billf)
Upgrade to 1.6.3

Submitted by:	Will Andrews <andrews@technologist.com>
PR:		ports/13455
415432b375