Ticket #35884: portfile.diff
File portfile.diff, 2.1 KB (added by khepler, 12 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name optipng 6 version 0. 6.56 version 0.7.2 7 7 categories graphics 8 8 license zlib 9 9 maintainers nomaintainer … … 21 21 homepage http://optipng.sourceforge.net/ 22 22 master_sites sourceforge:project/${name}/OptiPNG/${name}-${version} 23 23 24 checksums md5 9df5fa7bb45ae096ed6c6e0d8dc43dc7\25 sha1 91525748a0bbd9bbfa8355529da7c17a408173e5\26 rmd160 2b67ce48cba37e5c77ef13bdc285b37e919e2b0124 checksums md5 3bf5ff3e1dff99adb3c0b3dd9fd99f8a \ 25 sha1 06c294ca6fd767ff59f5ef9afdb32ae390b40989 \ 26 rmd160 7b578c8339cae5d5f5d687965aa33022c6dc5910 27 27 28 28 # Doesn't depend on libpng or zlib since it uses its own, modified versions 29 29 … … 31 31 # backslash-newline sequence compatibility. 32 32 depends_build port:gmake 33 33 34 # Avoid --prefix option (not supported by OptiPNG's configure script). 35 configure.pre_args 34 configure.args --mandir=${prefix}/share/man 36 35 37 36 # Workaround for problem with MacPorts 1.8.0, which adds the 38 37 # --disable-dependency-tracking configure option with the … … 42 41 43 42 build.cmd ${prefix}/bin/gmake 44 43 45 destroot { 46 xinstall -m 755 -d ${destroot}${prefix}/bin \ 47 ${destroot}${prefix}/share/doc/${name} \ 48 ${destroot}${prefix}/share/man/man1 49 xinstall -m 755 -W ${worksrcpath}/src optipng ${destroot}${prefix}/bin 50 eval xinstall -m 644 [glob ${worksrcpath}/doc/*] \ 51 ${worksrcpath}/README.txt ${destroot}${prefix}/share/doc/${name} 52 xinstall -m 644 ${worksrcpath}/man/optipng.1 \ 53 ${destroot}${prefix}/share/man/man1 54 } 55 56 # The default SourceForge livecheck rule doesn't with OptiPNG. 44 # The default SourceForge livecheck rule doesn't work with OptiPNG. 57 45 livecheck.type regex 58 46 livecheck.url ${homepage} 59 livecheck.regex " Latest version:.*<b>OptiPNG (\\d+\\.\\d+\\.\\d+)</b>"47 livecheck.regex "<b>OptiPNG (\\d+\\.\\d+\\.\\d+)</b></font> \\(stable\\)"