Ticket #8052: Portfile

File Portfile, 1.4 KB (added by vincent-opdarw@…, 19 years ago)

Portfile for optipng 0.5

Line 
1# $Id: Portfile 11698 2006-03-29 13:57:04Z lefevre $
2
3PortSystem 1.0
4name            optipng
5version         0.5
6categories      graphics
7maintainers     vincent-opdarw@vinc17.org
8description     Advanced PNG Optimizer
9
10long_description        OptiPNG is a PNG optimizer that recompresses the \
11                        image files to a smaller size, without losing any \
12                        information. The idea has been inspired from \
13                        pngcrush (http://pmt.sourceforge.net/pngcrush), \
14                        and is explained in detail in the PNG-Tech article \
15                        'A guide to PNG optimization'. The implementation is \
16                        carried forward in OptiPNG, which offers a faster \
17                        execution per trial, and a wider search space.
18
19homepage        http://www.cs.toronto.edu/~cosmin/pngtech/optipng/
20master_sites    http://www.cs.toronto.edu/~cosmin/pngtech/optipng/
21checksums       md5 3964fdf24e6de62fc994850c548dd13f \
22                sha1 c724e52802ea7419874ba7b4d3dfa55abf964ed6
23
24# Note: no library dependencies since optipng uses its own libz / libpng
25# statically linked.
26
27use_configure   no
28
29build           {
30                  cd ${worksrcpath}/src
31                  system "make -f scripts/gcc.mak"
32                }
33
34destroot        {
35                  file mkdir ${destroot}${prefix}/bin
36                  file copy ${worksrcpath}/src/${name} ${destroot}${prefix}/bin
37                  file mkdir ${destroot}${prefix}/share/doc/${name}
38                  cd ${worksrcpath}/doc
39                  system "for file in *; do \
40                    install -cv -m 644 \$file \
41                      ${destroot}${prefix}/share/doc/${name}/\$file; \
42                    done"
43                }