update graphics/gd2: 2.0.11 --> 2.0.12

PR:		52235
Submitted by:	Mathieu Arnold <m@absolight.net> (maintainer)
This commit is contained in:
Daichi GOTO 2003-07-01 05:03:52 +00:00
parent 0ad5117180
commit 4e408d2956
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83940
5 changed files with 15 additions and 28 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= gd
PORTVERSION= 2.0.11
PORTVERSION= 2.0.12
PORTREVISION= 1
CATEGORIES+= graphics
MASTER_SITES= http://www.boutell.com/gd/http/ \
@ -59,7 +59,7 @@ post-extract:
post-patch:
.if !defined(WITH_LZW)
${MV} ${WRKSRC}/gd_gif_out.c ${WRKSRC}/gd_gif_out.c.nogif && \
@${MV} ${WRKSRC}/gd_gif_out.c ${WRKSRC}/gd_gif_out.c.nogif && \
${SED} -e "s|#define LZW_LICENCED||g" \
< ${WRKSRC}/gd_gif_out.c.nogif \
> ${WRKSRC}/gd_gif_out.c

View File

@ -1 +1 @@
MD5 (gd-2.0.11.tar.gz) = e2b6a14e7ac9781789e5d9f189af8475
MD5 (gd-2.0.12.tar.gz) = de82080fbac781cfcd512c3c299066d7

View File

@ -6,7 +6,7 @@ SRCS= gd.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_io_file.c \
gd_io_ss.c gd_jpeg.c gd_png.c gd_ss.c gd_topal.c \
gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c \
gdfonts.c gdfontt.c gdft.c gdhelpers.c gdhelpers.h \
gdkanji.c gdtables.c gdxpm.c jisx0208.h mathmake.c \
gdkanji.c gdtables.c gdxpm.c jisx0208.h \
wbmp.c wbmp.h
SRCS+= gd_gif_in.c gd_gif_out.c gd_biggif_out.c gd_lzw_out.c
MAKEDIR=/usr/share/mk

View File

@ -1,12 +1,9 @@
--- gd.c Thu Apr 25 14:15:15 2002
+++ gd.c Thu Apr 25 12:43:55 2002
@@ -2211,7 +2230,17 @@
}
--- gd.c.orig Sat Mar 29 17:25:42 2003
+++ gd.c Wed May 14 16:46:34 2003
@@ -2696,6 +2696,16 @@
void
-gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c)
+gdImagePolygon(gdImagePtr im, gdPointPtr p, int n, int c)
+{
gdImagePolygon (gdImagePtr im, gdPointPtr p, int n, int c)
{
+ if (!n) {
+ return;
+ }
@ -16,25 +13,15 @@
+
+void
+gdImageOpenPolygon (gdImagePtr im, gdPointPtr p, int n, int c)
{
+{
int i;
int lx, ly;
@@ -2221,7 +2250,6 @@
}
if (!n)
@@ -2710,7 +2720,6 @@
lx = p->x;
ly = p->y;
- gdImageLine (im, lx, ly, p[n - 1].x, p[n - 1].y, c);
for (i = 1; (i < n); i++)
{
p++;
@@ -2461,8 +2489,8 @@
{
for (x = 0; (x < sx); x++)
{
- p1 = im1->pixels[y][x];
- p2 = im2->pixels[y][x];
+ p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y);
+ p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y);
if (gdImageRed (im1, p1) != gdImageRed (im2, p2))
{
cmpStatus |= GD_CMP_COLOR + GD_CMP_IMAGE;

View File

@ -21,5 +21,5 @@ include/gdfontt.h
lib/libgd.a
lib/libgd.so
lib/libgd.so.4
%%PORTDOCS%%share/doc/gd/index.html
%%PORTDOCS%%@dirrm share/doc/gd
%%PORTDOCS%%%%DOCSDIR%%/index.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%