1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Advanced PNG optimizer
12 SITES[main]= SF/optipng/OptiPNG/optipng-0.7.7
13 DISTFILE[1]= optipng-0.7.7.tar.gz:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 USES= cpe gmake zlib png
24 LICENSE= CUSTOM1:primary
25 LICENSE_NAME= CUSTOM1:"ZLIB License"
26 LICENSE_FILE= CUSTOM1:{{WRKSRC}}/LICENSE.txt
29 CPE_VENDOR= optipng_project
30 FPC_EQUIVALENT= graphics/optipng
33 CONFIGURE_ARGS= --with-system-zlib
37 ${INSTALL_PROGRAM} ${WRKSRC}/src/optipng/optipng \
38 ${STAGEDIR}${PREFIX}/bin/
39 ${INSTALL_MAN} ${WRKSRC}/src/optipng/man/optipng.1 \
40 ${STAGEDIR}${MAN1PREFIX}/man/man1/
41 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
42 .for D in history.txt optipng.man.* png_optimization.html
43 ${INSTALL_DATA} ${WRKSRC}/doc/${D} ${STAGEDIR}${STD_DOCDIR}/
46 [FILE:508:descriptions/desc.primary]
47 OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
48 without losing any information. This program also converts external formats
49 (BMP, GIF, PNM; TIFF support is coming up) to optimized PNG, and performs
50 PNG integrity checks and corrections.
52 The idea has been inspired from pngcrush, and is explained in detail in the
53 PNG-Tech article "A guide to PNG optimization". The implementation is
54 carried forward in OptiPNG, which offers a faster execution per trial, and
59 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452 2329555 optipng-0.7.7.tar.gz
62 [FILE:40:manifests/plist.primary]
64 share/man/man1/optipng.1.gz
67 [FILE:107:manifests/plist.docs]
76 [FILE:601:patches/patch-src_pngxtern_pngxmem.c]
77 --- src/pngxtern/pngxmem.c.orig 2018-01-06 23:22:33 UTC
78 +++ src/pngxtern/pngxmem.c
79 @@ -35,7 +35,7 @@ pngx_malloc_rows_extended(png_structp pn
80 row_size = png_get_rowbytes(png_ptr, info_ptr);
81 /* libpng sets row_size to 0 when the width is too large to process. */
83 - (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1) / sizeof(png_bytep))
84 + (pngx_alloc_size_t)height > (pngx_alloc_size_t)(-1U) / sizeof(png_bytep))
85 png_error(png_ptr, "Can't handle exceedingly large image dimensions");
86 if (row_size < min_row_size)
87 row_size = min_row_size;