Ravenports generated: 04 Aug 2023 06:11
[ravenports.git] / bucket_2B / optipng
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               optipng
4 VERSION=                0.7.7
5 KEYWORDS=               graphics
6 VARIANTS=               standard
7 SDESC[standard]=        Advanced PNG optimizer
8 HOMEPAGE=               none
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            SF/optipng/OptiPNG/optipng-0.7.7
13 DISTFILE[1]=            optipng-0.7.7.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 USES=                   cpe gmake zlib png
23
24 LICENSE=                CUSTOM1:primary
25 LICENSE_NAME=           CUSTOM1:"ZLIB License"
26 LICENSE_FILE=           CUSTOM1:{{WRKSRC}}/LICENSE.txt
27 LICENSE_SCHEME=         solo
28
29 CPE_VENDOR=             optipng_project
30 FPC_EQUIVALENT=         graphics/optipng
31
32 MUST_CONFIGURE=         yes
33 CONFIGURE_ARGS=         --with-system-zlib
34                         --with-system-libpng
35
36 do-install:
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}/
44 .endfor
45
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.
51
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
55 a wider search space.
56
57
58 [FILE:99:distinfo]
59 4f32f233cef870b3f95d3ad6428bfe4224ef34908f1b42b0badf858216654452      2329555 optipng-0.7.7.tar.gz
60
61
62 [FILE:40:manifests/plist.primary]
63 bin/optipng
64 share/man/man1/optipng.1.gz
65
66
67 [FILE:107:manifests/plist.docs]
68 share/doc/optipng/
69  history.txt
70  optipng.man.html
71  optipng.man.pdf
72  optipng.man.txt
73  png_optimization.html
74
75
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. */
82     if (row_size == 0 ||
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;
88