1 | # $Id: Portfile 11698 2006-03-29 13:57:04Z lefevre $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name optipng |
---|
5 | version 0.5 |
---|
6 | categories graphics |
---|
7 | maintainers vincent-opdarw@vinc17.org |
---|
8 | description Advanced PNG Optimizer |
---|
9 | |
---|
10 | long_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 | |
---|
19 | homepage http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ |
---|
20 | master_sites http://www.cs.toronto.edu/~cosmin/pngtech/optipng/ |
---|
21 | checksums md5 3964fdf24e6de62fc994850c548dd13f \ |
---|
22 | sha1 c724e52802ea7419874ba7b4d3dfa55abf964ed6 |
---|
23 | |
---|
24 | # Note: no library dependencies since optipng uses its own libz / libpng |
---|
25 | # statically linked. |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | build { |
---|
30 | cd ${worksrcpath}/src |
---|
31 | system "make -f scripts/gcc.mak" |
---|
32 | } |
---|
33 | |
---|
34 | destroot { |
---|
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 | } |
---|