Index: Makefile =================================================================== --- Makefile (revision 474471) +++ Makefile (working copy) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= libgd -PORTVERSION= 2.2.4 -PORTREVISION= 1 +PORTVERSION= 2.2.5 PORTEPOCH= 1 CATEGORIES+= graphics MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/gd-${PORTVERSION}/ @@ -90,6 +89,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/src/gdhelpers.h \ ${STAGEDIR}${PREFIX}/include/ - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgd.so.6.0.4 + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgd.so.6* .include Index: distinfo =================================================================== --- distinfo (revision 474471) +++ distinfo (working copy) @@ -1,3 +1,3 @@ -TIMESTAMP = 1485463341 -SHA256 (libgd-2.2.4.tar.xz) = 137f13a7eb93ce72e32ccd7cebdab6874f8cf7ddf31d3a455a68e016ecd9e4e6 -SIZE (libgd-2.2.4.tar.xz) = 2478528 +TIMESTAMP = 1531337629 +SHA256 (libgd-2.2.5.tar.xz) = 8c302ccbf467faec732f0741a859eef4ecae22fea2d2ab87467be940842bde51 +SIZE (libgd-2.2.5.tar.xz) = 2594092 Index: files/patch-gd_gif_in.c =================================================================== --- files/patch-gd_gif_in.c (nonexistent) +++ files/patch-gd_gif_in.c (working copy) @@ -0,0 +1,34 @@ +See: + + https://bugs.php.net/bug.php?id=75571 + +--- src/gd_gif_in.c 2017-08-30 07:05:54.000000000 -0400 ++++ src/gd_gif_in.c 2018-07-11 15:39:11.746181000 -0400 +@@ -336,9 +336,4 @@ + } + +- if(!im->colorsTotal) { +- gdImageDestroy(im); +- return 0; +- } +- + /* Check for open colors at the end, so + * we can reduce colorsTotal and ultimately +@@ -352,4 +347,9 @@ + } + ++ if(!im->colorsTotal) { ++ gdImageDestroy(im); ++ return 0; ++ } ++ + return im; + } +@@ -447,6 +447,5 @@ + GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) + { +- int i, j, ret; +- unsigned char count; ++ int i, j, ret, count; + + if(flag) { Property changes on: files/patch-gd_gif_in.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: pkg-plist =================================================================== --- pkg-plist (revision 474471) +++ pkg-plist (working copy) @@ -29,5 +29,5 @@ lib/libgd.la lib/libgd.so lib/libgd.so.6 -lib/libgd.so.6.0.4 +lib/libgd.so.6.0.5 libdata/pkgconfig/gdlib.pc