2018-09-10 15:34:16 +02:00
|
|
|
# $NetBSD: Makefile,v 1.121 2018/09/10 13:34:16 kim Exp $
|
1998-03-07 22:59:13 +01:00
|
|
|
|
2017-09-04 08:20:45 +02:00
|
|
|
DISTNAME= libgd-2.2.5
|
2013-09-02 23:17:42 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/libgd/gd/}
|
2018-09-10 15:34:16 +02:00
|
|
|
PKGREVISION= 4
|
1998-03-07 22:59:13 +01:00
|
|
|
CATEGORIES= graphics
|
We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga
Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold
Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 20:29:21 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=libgd/}
|
2013-09-02 23:17:42 +02:00
|
|
|
EXTRACT_SUFX= .tar.xz
|
1998-03-07 22:59:13 +01:00
|
|
|
|
2018-09-10 15:34:16 +02:00
|
|
|
PATCH_SITES= ${MASTER_SITE_GITHUB:=libgd/libgd/commit/}
|
|
|
|
PATCHFILES= 4b1e18a00ce7c4b7e6919c3b3109a034393b805a.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= adam@NetBSD.org
|
2018-02-25 15:34:22 +01:00
|
|
|
HOMEPAGE= https://libgd.github.io/
|
2004-01-05 16:30:16 +01:00
|
|
|
COMMENT= Graphics library for the dynamic creation of images
|
1998-03-07 22:59:13 +01:00
|
|
|
|
We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga
Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold
Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 20:29:21 +02:00
|
|
|
GITHUB_PROJECT= libgd
|
|
|
|
GITHUB_RELEASE= gd-${PKGVERSION_NOREV}
|
2015-06-30 12:20:10 +02:00
|
|
|
|
2009-05-19 00:18:42 +02:00
|
|
|
.include "options.mk"
|
|
|
|
|
2007-02-16 21:37:52 +01:00
|
|
|
USE_LIBTOOL= yes
|
2018-05-05 14:13:44 +02:00
|
|
|
USE_TOOLS+= perl:run pkg-config
|
2007-02-16 21:37:52 +01:00
|
|
|
GNU_CONFIGURE= yes
|
We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga
Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold
Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 20:29:21 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-werror
|
2013-09-02 23:17:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-fontconfig=${BUILDLINK_PREFIX.fontconfig}
|
|
|
|
CONFIGURE_ARGS+= --with-freetype=${BUILDLINK_PREFIX.freetype2}
|
|
|
|
CONFIGURE_ARGS+= --with-jpeg=${BUILDLINK_PREFIX.jpeg}
|
2017-09-04 08:20:45 +02:00
|
|
|
CONFIGURE_ARGS+= --with-liq=${BUILDLINK_PREFIX.libimagequant}
|
2013-09-02 23:17:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png}
|
We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga
Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold
Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 20:29:21 +02:00
|
|
|
CONFIGURE_ARGS+= --with-webp=${BUILDLINK_PREFIX.libwebp}
|
2013-09-02 23:17:42 +02:00
|
|
|
CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
|
|
|
|
REPLACE_PERL+= src/bdftogd
|
2004-11-29 18:00:01 +01:00
|
|
|
PTHREAD_AUTO_VARS= yes
|
* Update to gd-1.7.3. Now depends on graphics/freetype and graphics/xpm.
* Build process no longer uses configure.
* Change DESCR to reflect that gd makes PNG, not GIF, files.
* Version library at 1.7. Fixes PR#????
Changes from version 1.6.3:
--------------------------
What's new in version 1.7.3?
Another attempt at Makefile fixes to permit linking with all libraries
required on platforms with order- dependent linkers. Perhaps it will
work this time.
What's new in version 1.7.2?
An uninitialized-pointer bug in gdtestttf.c was corrected. This bug
caused crashes at the end of each call to gdImageStringTTF on some
platforms. Thanks to Wolfgang Haefelinger.
Documentation fixes. Thanks to Dohn Arms.
Makefile fixes to permit linking with all libraries required on
platforms with order- dependent linkers.
What's new in version 1.7.1?
A minor buglet in the Makefile was corrected, as well as an inaccurate
error message in gdtestttf.c. Thanks to Masahito Yamaga.
What's new in version 1.7?
Version 1.7 contains the following changes:
* Japanese language support for the TrueType functions. Thanks to
Masahito Yamaga.
* autoconf and configure have been removed, in favor of a carefully
designed Makefile which produces and properly installs the library
and the binaries. System-dependent variables are at the top of the
Makefile for easy modification. I'm sorry, folks, but autoconf
generated _many, many confused email messages_ from people who
didn't have things where autoconf expected to find them. I am not
an autoconf/automake wizard, and gd is a simple, very compact
library which does not need to be a shared library. I _did_ make
many improvements over the old gd 1.3 Makefile, which were
directly inspired by the autoconf version found in the 1.6 series
(thanks to John Ellson).
* Completely ANSI C compliant, according to the -pedantic-errors
flag of gcc. Several pieces of not-quite-ANSI-C code were causing
problems for those with non-gcc compilers.
* gdttf.c patched to allow the use of Windows symbol fonts, when
present (thanks to Joseph Peppin).
* extern "C" wrappers added to gd.h and the font header files for
the convenience of C++ programmers. bdftogd was also modified to
automatically insert these wrappers into future font header files.
Thanks to John Lindal.
* Compiles correctly on platforms that don't define SEEK_SET. Thanks
to Robert Bonomi.
* Loads Xpm images via the gdImageCreateFromXpm function, if the Xpm
library is available. Thanks to Caolan McNamara.
1999-11-01 04:29:29 +01:00
|
|
|
|
2013-09-04 11:39:20 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2004-01-06 09:00:28 +01:00
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2008-11-14 20:11:44 +01:00
|
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
2004-01-06 09:00:28 +01:00
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
2017-09-04 08:20:45 +02:00
|
|
|
.include "../../graphics/libimagequant/buildlink3.mk"
|
We welcome the 2.2.3 release around a month after 2.2.2 (we are getting consistent). Another important milestone in the GD 2.2 series.
Security related fixes: This flaw is caused by loading data from external sources (file, custom ctx, etc) and are hard to validate before calling libgd APIs:
* fix php bug 72339, Integer Overflow in _gd2GetHeader (CVE-2016-5766)
* bug 247, A read out-of-bands was found in the parsing of TGA files (CVE-2016-6132)
* also bug 247, Buffer over-read issue when parsing crafted TGA file (CVE-2016-6214)
* bug 248, fix Out-Of-Bounds Read in read_image_tga
Using application provided parameters, in these cases invalid data causes the issues:
* Integer overflow error within _gdContributionsAlloc() (CVE-2016-6207)
* fix php bug 72494, invalid color index not handled, can lead to crash ( CVE-2016-6128)
* improve color check for CropThreshold
Important update:
* gdImageCopyResampled has been improved. Better handling of images with alpha channel, also brings libgd in sync with php's bundled gd.
2016-08-02 20:29:21 +02:00
|
|
|
.include "../../graphics/libwebp/buildlink3.mk"
|
2004-01-06 09:00:28 +01:00
|
|
|
.include "../../graphics/png/buildlink3.mk"
|
2013-09-02 23:17:42 +02:00
|
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
2004-01-07 08:16:13 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|