Upbreak.
- Regen patches. - Move part of pkg-descr explaining the options to pkg-help, where it belongs. PR: 208711 Submitted by: tkato432 yahoo com Sponsored by: Absolight
This commit is contained in:
parent
fabe2654df
commit
609351c1dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=413128
@ -4,20 +4,17 @@
|
||||
PORTNAME= giftool
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= http://www.the-labs.com/GIFTool/
|
||||
DISTNAME= ${PORTNAME}
|
||||
EXTRACT_SUFX= .tar.Z
|
||||
MASTER_SITES= SUNSITE/apps/graphics/convert/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Tool for GIF89a transparent option and interlace mode
|
||||
|
||||
BROKEN= unfetchable
|
||||
|
||||
NO_CDROM= Shareware
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
ALL_TARGET= giftool
|
||||
MAKE_ARGS= CFLAGS="${CFLAGS}"
|
||||
USES= tar:tgz
|
||||
|
||||
OPTIONS_DEFINE= RETVALUE MALLOCSIZE DOCS
|
||||
OPTIONS_DEFAULT= RETVALUE MALLOCSIZE
|
||||
@ -32,6 +29,8 @@ MALLOCSIZE_EXTRA_PATCHES= ${PATCHDIR}/extra-patch-ab
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/giftool ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (giftool.tar.Z) = 5bcd4f7a76729a1f823b53c2af804cc34ac4f0f261f42671af0e5843db4337ba
|
||||
SIZE (giftool.tar.Z) = 33697
|
||||
SHA256 (giftool-1.0.tgz) = fdf0e818839a3997ead856db7232e49fff4ba1eb3ec2d4a46c52826708e29b44
|
||||
SIZE (giftool-1.0.tgz) = 21512
|
||||
|
@ -1,27 +1,17 @@
|
||||
*** main.c.orig Sat Mar 8 06:34:28 1997
|
||||
--- main.c Sat Mar 8 06:37:33 1997
|
||||
***************
|
||||
*** 1275,1281 ****
|
||||
exit(1);
|
||||
}
|
||||
|
||||
! main(int argc, char *argv[])
|
||||
{
|
||||
int c, i;
|
||||
int batchMode = 0;
|
||||
--- 1275,1281 ----
|
||||
exit(1);
|
||||
}
|
||||
|
||||
! int main(int argc, char *argv[])
|
||||
{
|
||||
int c, i;
|
||||
int batchMode = 0;
|
||||
***************
|
||||
*** 1410,1413 ****
|
||||
--- 1410,1414 ----
|
||||
GIFFree(stream);
|
||||
}
|
||||
}
|
||||
+ return 0;
|
||||
}
|
||||
--- main.c.orig 1994-12-07 18:31:59 UTC
|
||||
+++ main.c
|
||||
@@ -1275,7 +1275,7 @@ static void usage()
|
||||
exit(1);
|
||||
}
|
||||
|
||||
-main(int argc, char *argv[])
|
||||
+int main(int argc, char *argv[])
|
||||
{
|
||||
int c, i;
|
||||
int batchMode = 0;
|
||||
@@ -1410,4 +1410,5 @@ main(int argc, char *argv[])
|
||||
GIFFree(stream);
|
||||
}
|
||||
}
|
||||
+ return 0;
|
||||
}
|
||||
|
@ -1,19 +1,11 @@
|
||||
*** readGIF.c.orig Sat Mar 8 06:28:02 1997
|
||||
--- readGIF.c Sat Mar 8 06:30:05 1997
|
||||
***************
|
||||
*** 253,259 ****
|
||||
cur->data.image.cmapSize = 0;
|
||||
|
||||
}
|
||||
! cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height);
|
||||
cur->data.image.interlaced = BitSet(buf[8], INTERLACE);
|
||||
readImage(fd, BitSet(buf[8], INTERLACE),
|
||||
cur->width, cur->height, cur->data.image.data);
|
||||
--- 253,259 ----
|
||||
cur->data.image.cmapSize = 0;
|
||||
|
||||
}
|
||||
! cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height + 1);
|
||||
cur->data.image.interlaced = BitSet(buf[8], INTERLACE);
|
||||
readImage(fd, BitSet(buf[8], INTERLACE),
|
||||
cur->width, cur->height, cur->data.image.data);
|
||||
--- readGIF.c.orig 1994-12-09 19:17:03 UTC
|
||||
+++ readGIF.c
|
||||
@@ -253,7 +253,7 @@ GIFStream *GIFReadFP(FILE *fd)
|
||||
cur->data.image.cmapSize = 0;
|
||||
|
||||
}
|
||||
- cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height);
|
||||
+ cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height + 1);
|
||||
cur->data.image.interlaced = BitSet(buf[8], INTERLACE);
|
||||
readImage(fd, BitSet(buf[8], INTERLACE),
|
||||
cur->width, cur->height, cur->data.image.data);
|
||||
|
@ -2,15 +2,3 @@ GIFTool is a tool for GIF89a transparent option and interlace mode. For
|
||||
instance 'giftool -B -i *.gif' converts all images to interlaced GIF files.
|
||||
|
||||
GIFTool is shareware. Use the -info option to read the licensing information.
|
||||
|
||||
Two options are recommended:
|
||||
WITH_RETVALUE=yes
|
||||
This option, suggested by Sergei Chechetkin
|
||||
<csl@whale.sunbay.crimea.ua>, causes GIFTool to provide a return value
|
||||
so may be used in pipes or with programs like make(1).
|
||||
WITH_MALLOCSIZE=yes
|
||||
This option, suggested by Hidetoshi Shimokawa
|
||||
<simokawa@sat.t.u-tokyo.ac.jp>, increases the size of a malloc, to avoid
|
||||
a segmentation fault when pre-reading some images.
|
||||
|
||||
WWW: http://www.the-labs.com/GIFTool/
|
||||
|
12
graphics/giftool/pkg-help
Normal file
12
graphics/giftool/pkg-help
Normal file
@ -0,0 +1,12 @@
|
||||
RETVALUE
|
||||
|
||||
This option, suggested by Sergei Chechetkin
|
||||
<csl@whale.sunbay.crimea.ua>, causes GIFTool to provide a return
|
||||
value so may be used in pipes or with programs like make(1).
|
||||
|
||||
MALLOCSIZE
|
||||
|
||||
This option, suggested by Hidetoshi Shimokawa
|
||||
<simokawa@sat.t.u-tokyo.ac.jp>, increases the size of a malloc, to
|
||||
avoid a segmentation fault when pre-reading some images.
|
||||
|
Loading…
Reference in New Issue
Block a user